Forum Moderators: coopster

Message Too Old, No Replies

surpress error messages?

         

SubZeroGTS

1:12 am on Feb 1, 2003 (gmt 0)

10+ Year Member



i've got a script that runs fine on my web server, when i try to run it off my computer (using Apache/PHP for Win32), i get a zillion 'undefined variable' or 'undefined index' errors...but the script works fine! the normal output is right below the errors, and i check the script and all those variables are obviously defined.

wtf?! can i just turn off error messages?

andreasfriedrich

9:16 am on Feb 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



error_reporting(0);
will turn off error reporting. Have a look at error_reporting [php.net] for more information.

Andreas