在Zen cart中使用error_reporting()

时间:2011-02-25 08:59:08

标签: php error-reporting zen-cart

我在Zen Cart工作,我在不同页面上有一些错误。我想使用error_reporting(0)

我如何以及在哪个页面中使用此功能?

有人可以帮帮我吗?

3 个答案:

答案 0 :(得分:4)

Zen cart具有内置方式,可以轻松进行错误报告。

在购物车顶部创建一个名为includes / local的目录。在此目录中,放置一个名为configure.php的文件。在此文件中,输入

<?php
   define('STRICT_ERROR_REPORTING', true);
   ?>
然后,您将看到代码生成的php错误。

答案 1 :(得分:1)

This link to the php documentation应该解释您需要知道的一切。

答案 2 :(得分:0)

您只需write error_reporting(E_ALL)即可显示所有错误+通知+警告......