开发者

Using error_reporting() in Zen cart

开发者 https://www.devze.com 2023-02-13 14:19 出处:网络
I am working in Zen Cart and I have some errors in different pages开发者_如何学C. I want to use error_reporting(0).

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消