$txt line

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gavino

    $txt line

    http://hashphp.org/pastebin.php?format=plain&pid=8181 the $txt line
    here is giving me problems along with the two if lines below

    complaint from log:
    [client 207.71.33.86] PHP Notice: Use of undefined constant depend -
    assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
    203
    [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
    assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on line
    199
    [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
    assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on line
    200
    [client 207.71.33.86] PHP Notice: Use of undefined constant sid -
    assumed 'sid' in /var/www/html/billingticket/sliputils.php3 on line 203

    this is php3 app now on php 4.3.9
    its pissed

  • Rik

    #2
    Re: $txt line

    gavino wrote:
    http://hashphp.org/pastebin.php?format=plain&pid=8181 the $txt line
    here is giving me problems along with the two if lines below
    >
    complaint from log:
    [client 207.71.33.86] PHP Notice: Use of undefined constant depend -
    assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
    203
    [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
    assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
    line 199
    [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
    assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
    line 200
    [client 207.71.33.86] PHP Notice: Use of undefined constant sid -
    assumed 'sid' in /var/www/html/billingticket/sliputils.php3 on line
    203
    >
    this is php3 app now on php 4.3.9
    its pissed
    Well, the complaining about sid I understand:
    Use :
    echo "<option value=\"{$row['sid']}\" $sel{$row['sid']} - $txt\n";
    Instead of:
    echo "<option value=\"$row[sid]\" $sel$row[sid] - $txt\n";



    The rest is not clear to me, unless your not pasting your actual code.

    Grtz,
    --
    Rik Wasmus


    Comment

    • Alvaro G. Vicario

      #3
      Re: $txt line

      *** gavino escribió/wrote (17 Aug 2006 21:42:26 -0700):
      [client 207.71.33.86] PHP Notice: Use of undefined constant depend -
      assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
      203
      In PHP you can create constants:

      define('foo', 'I am a constant');
      echo foo; // Prints: I am a constant

      When you use a constant you haven't defined, PHP makes an educated guess:

      echo bar; // Prints: bar

      PHP guesses that when you say bar you really meant 'bar'.

      this is php3 app now on php 4.3.9
      You just have different settings after upgrading. Formerly, you instructed
      PHP not to inform about notice messages. The fact, now and then, is that
      your code is missing several quotes ;-)


      --
      -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
      ++ Mi sitio sobre programación web: http://bits.demogracia.com
      +- Mi web de humor con rayos UVA: http://www.demogracia.com
      --

      Comment

      Working...