Re: Undefined Variable Error in Windows Version
| From: | Chris Hayes | Date: | Sun, 24 Dec 2000 16:56:55 +0000 |
| Subject: | Re: Undefined Variable Error in Windows Version | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31759@lists.php.net to get a copy of this message | ||
> I have been using PHP for years, but always in a Unix environment.
> I now have a project that forces me to use the Windows (yuk!)
> version.
>
> Now, I am CONSTANTLY getting "Warning: Undefined Variable..."
> messages when running my scripts. Although I can re-write
> EVERYTHING to get around it, I would rather NOT do so.
>
> Is there a simple fix for this??
Don't blame the OS, but change the warning level in php.ini:
[cut & paste from php3.ini:]
; error_reporting is a bit-field. Add each number up to get desired error
;reporting level
; 1 = Normal errors
; 2 = Normal warnings
; 4 = Parser errors
; 8 = Notices - warnings you can ignore, but sometimes imply a bug (e.g., ;
using an uninitialized variable)
error_reporting = 15
So probably your error_reporting is set to something inluding an '8', so set
it to 7 top prevent the messages.
BTW sometimes php.ini is in some windows directory.
merry dinners,
Chris
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------