How can i hide the php errors showing in my site?

You have some options.


a) If you are in our shared cPanel hosting, use the PHP Selector from your cPanel to directly edit this and other PHP variables in the php.ini for the PHP running in your hosting account.

b) If you are in our shared cPanel hosting, create or edit the .htaccess file and put it in the directory where you are running the php script where the php function is erroring, with the following line in the file:

<IfModule lsapi_module>
php_flag display_errors Off
</IfModule>

 

c) add the following line in your php script file:

error_reporting(0);



  • 0 Users Found This Useful
Was this answer helpful?
Related Articles
Copyright © 2020 PlusPlusHosting.Net. All Rights Reserved.
2Checkout.com is an authorized reseller of goods and services provided by PlusPlusHosting.Net.