Register now or log in to join your professional community.
You can hide them using error_reporting(0); at the top of the page.
You have two options:
[?php error_reporting(0); ?]
If it is production server and you have access to php.ini file, then it is best to turn off display_errors.
Else you can do it from your script as
ini_set("display_errors", "Off");
Or you can use .htaccess to override the values for your web directory (if you are on a shared hosting server)
simply write error_reporting(0); at start of page inside php tag
start you script with
error_reporting(0);
which type of error you need to hide, cuz there are to many type of errors
include this function on top of the page or include in header file <?php error_reporting(0); ?>