Friday, August 9, 2019

php warning off

Just type this in your index.php

ini_set('display_errors','off');


using this method, your errors and warning will be off.

There are many ways, to block your errors. but upper method is very good.

Other commands :-

# error_reporting(0); in index.php

# php_flag display_errors Off in .htaccess file

0 comments: