Hello Guys I Want To Upload My Website To The internet But I Have Error In The Website Can I hide These Errors? And Thank You!
CodePudding user response:
you can control visibility of errors with error_reporting(). To skip warning messages, you could use :
error_reporting(E_ERROR | E_PARSE);
or
ini_set('display_errors','Off');
If you use any frameworks like codeigniter or laravel or yii .... these frameworks has their own mechanism to switch between development or production state. for example laravel use .env value to determine which state are sett.