Home > Bookmarks, Hosting, PhP, Tech, Web > Hide Php Error Messages – How To !?

Hide Php Error Messages – How To !?

How can I hide PHP error messages in browser?

in php.ini file (global settings for server):

display_errors = Off

Using the ini_set() function to set the value of this, you will have to do it every time you run the script though.

<?php
ini_set
("display_errors", "off");
?>

Use : error_reporting() function:

<?php
error_reporting
(0);
?>

  1. No comments yet.
  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.144456 sec (gzip)