Re: issue with undefined variables with PHP 4.06
| From: | Angie Tollerson | Date: | Wed, 22 Aug 2001 14:30:42 +0000 |
| Subject: | Re: issue with undefined variables with PHP 4.06 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8998@lists.php.net to get a copy of this message | ||
Actually, that's not quite right either. I had the same problem as you Phil, I had to do E_ALL
& ~E_NOTICE & ~E_WARNING
that last one will remove the warnings. Does anyone know the exact differnce between a warning and a
notice?
Angie
>>> Mike Flynn <mike@mikeflynn.net> 08/22/01 08:22AM >>>
Set your error reporting to:
E_ALL & ~E_NOTICE
Having it just set to E_ALL is what's causing the problem in the first
place. :)
-Mike
At 09:38 AM 8/22/2001 +0100, you wrote:
>Hi
>
>I have just reinstalled my win2k system and installed the latest version of
>PHP (4.06), now when I run a lot of my old scripts I get errors like the one
>below, when I access the page before posting any data to it. The example
>below is taken straight from a tutorial site. I'm not sure if this is a
>change in PHP since 4.01 which I had been using or what ?
>
>Can anyone help please ?!
>
>Thanks
>
>Phil
>
>Warning: Undefined variable: name in u:\inetpub\wwwroot\php\form5.php on
>line 7
>
>
>
>
>
>My Example Form
>
>
>
>Name: Age: <?if($name):?> Hi <?echo $name?>, you are <?echo $age?> years
>old <?endif?>
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
>For additional commands, e-mail: php-windows-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
-=- Mike Flynn - Burlington, VT -=-
mike@mikeflynn.net http://www.mikeflynn.net/ * Give blood
*
The modern conservative is engaged in one of man's oldest
exercises in moral philosophy; that is, the search for a
superior moral justification for selfishness.
-- James K. Galbraith
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net