Forum Moderators: coopster

Message Too Old, No Replies

Undefined variable.. from a query string?

Win2K vs Apache query string parsing?

         

Bingo

4:43 pm on Jan 23, 2004 (gmt 0)

10+ Year Member



Hi,

I hope someone can help... I'm getting 'undefined variable' errors when parsing a query string in PHP. I didn't think I had to define variables used in a query string?

The script works fine on Linux/Apache but produces errors on Win2k/IIS.

Any clues?

Bingo

RussellC

5:08 pm on Jan 23, 2004 (gmt 0)

10+ Year Member



Your error_reporting is probably set to 8 or greater in the php.ini file on your server. If you dont have access to modify php.ini you can always change it for script. CHeck out [us4.php.net...] You can also suppress errors by using the @ symbol ( e.g. - $query = @mysql_query($sql); )

Bingo

9:48 am on Jan 24, 2004 (gmt 0)

10+ Year Member



Thanks Russell, you were right...

I changed the line in php.ini from:
error_reporting = E_ALL;

To:
error_reporting = E_ALL & ~E_NOTICE

Bingo