Re: PHP & Windows problems: "Warning: Undefined variables..."
| From: | Phil Driscoll | Date: | Wed, 16 Jan 2002 09:04:39 +0000 |
| Subject: | Re: PHP & Windows problems: "Warning: Undefined variables..." | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5594@lists.php.net to get a copy of this message | ||
On Wednesday 16 January 2002 3:04 am, Robert Abbate wrote:
> What's up with the Windows versions for PHP? They keep saying that all
> variables must be defined instead of allowing them to be defined when
> necessary. Is there a way to disable this warning in Windows setup?
Like all versions of PHP, it's just telling you that the variables should be
defined before you use them. You can get rid of the warning messages by
changing the error_reporting level in php.ini, BUT you should only do this on
a production machine, not your development machine. Each of those warning
messages flags up a potential security hole in your code. Your best bet is to
fix the code!
Cheers
--
Phil Driscoll