I am working in Zen Cart and I have some errors in different pages. I want to use error_reporting(0)
.
How and in which page can I use this?
Could anybody please help me?
Zen cart has a built in way to make it easy to do error reporting.
Create a directory at the top of your cart called includes/local. In this directory, put a file called configure.php. In this file, put
<?php
define('STRICT_ERROR_REPORTING', true);
?>
you will then see the php errors your code generates.
This link to the php documentation should explain all you need to know.
you can just write error_reporting(E_ALL)
for displaying all errors + notices + warnings...