RE: [PHP-WIN] Newbie-questionning: Errors in nearly every Downloa ded Script
| From: | Schulz, Evan | Date: | Thu, 26 Apr 2001 13:56:29 +0000 |
| Subject: | RE: [PHP-WIN] Newbie-questionning: Errors in nearly every Downloa ded Script | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7067@lists.php.net to get a copy of this message | ||
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:irgendwas@mobaer.de]
Sent: Thursday, April 26, 2001 8:46 AM
To: php-windows@lists.php.net
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: 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