PHP display-errors setting.

Status
Not open for further replies.
Messages
75
Reaction score
0
Points
6
Hello, I would like to disable php errors from being displayed in a browser when an error is encountered.

I consulted the PHP help and found this:
http://www.php.net/manual/en/errorf.../code] Where can I find this php.ini file?
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
You need to manually set it in your script to display errors...

Displaying errors is off by default, except for Fatal errors, I believe.

You could try using ini_set('display_errors', 0); in your PHP script, though I'm pretty sure errors are already off..
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If it is included in all your files, just add the line at the top. You can also use your choice of:

error_reporting(0); // turns off all error reporting, blank page if it crashes

error_reporting(E_ERROR); // just fatal errors

error_reporting(-1); // displays all errors, warning, etc.
 
Status
Not open for further replies.
Top