Can anyone tell me how can i disable php warnings and notices on my apache web server?
dreamcatcher
9:53 am on Jul 28, 2007 (gmt 0)
You need to open your PHP.ini file and edit the following directive:
display_errors = On
Change to:
display_errors = Off
Save and re-boot server.
dc
ayushchd
10:41 am on Jul 28, 2007 (gmt 0)
din work....errors are still being displayed...by da way where shud the php.ini file be located?
PHP_Chimp
9:40 pm on Jul 28, 2007 (gmt 0)
you could alway try calling ini_set [uk2.php.net] just to make sure that you are using the correct syntax. You would need to include this code at the top of anything that you wanted to disable errors on. The other option is to use the @ operator to mute errors.
As if you turn error reporting off on the server then you cant test you script on that server...as you get no errors.
anilguha
11:05 pm on Jul 28, 2007 (gmt 0)
Hello,
Try this error_reporting(0), at the top of each page. If, you have .htaccess then put this line in the .htaccess file , display_errors OFF.