在Zen cart中使用error_reporting()
问题描述:
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工作,我在不同的页面中有一些错误。 我想使用 我如何以及在哪个页面中使用此功能? p>
有人可以帮帮我吗? p>
div> error_reporting(0) code>。 p>
答
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...