Edit your php.ini. Find "error_reporting" and set it to something that will
ignore notices. I like mine set as follows:
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE) ;
Technically it is better to just have it at E_ALL for better coding and some
might argue better security. You don't _have_ to declare all variables,
though, and I think most people don't just looking at all of the scripts and
full blown applications on the net.
-----Original Message-----
From: Jochen Becker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Newbie-questionning: Errors in nearly every
Downloaded Script
Hi There!
I've got the following problem with nearly every downloaded Script, running
on my server with Xitami Webserver v2.4d7
PHP Version 4.0.4pl1(win32)
and
MySql 3.23.36(win32)
Everytime I use the scripts errors appeared like the following one:
Warning: Undefined variable: cmd in c:/www-root/gbook/gbook.php on line 38
I know how to fix the other errors appearing in the usage of [...] instead
of ['...'], but the variable declaration must be anywhere in the scripts,
or?
I and my server can't find them
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]