Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Zen Cart 中工作,但在不同的页面中有一些错误。我想用error_reporting(0).
error_reporting(0)
我可以如何以及在哪个页面使用它?
有人可以帮我吗?
Zen Cart 有一个内置的方法可以很容易地进行错误报告。
在您的购物车顶部创建一个名为 includes/local 的目录。在此目录中,放置一个名为 configure.php 的文件。在这个文件中,把
<?php define('STRICT_ERROR_REPORTING', true); ?>
然后您将看到您的代码生成的 php 错误。
您可以只write error_reporting(E_ALL)显示所有错误+通知+警告...
write error_reporting(E_ALL)