Using error_reporting() in Zen cart
I am working in Zen Cart and I have some errors in different pages开发者_如何学C. 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.
you can just write error_reporting(E_ALL)
for displaying all errors + notices + warnings...
精彩评论