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);
?>


Post a Comment



We use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you.