|
Posted by Alvaro G. Vicario on 08/18/06 18:37
*** 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
--
[Back to original message]
|