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.
我想静音我的 XAMPP 错误报告,所以我将display_error值从 On 更改为 Off,然后重新启动服务。但是重新启动后,我仍然收到错误消息。我不知道为什么会这样。
display_error
如果要在脚本上从 PHP 中删除错误,请使用
错误报告(0);
编辑:哦。你想完全禁用它吗?我不会这样做,因为您可能会错过不会导致页面加载的小错误。
是否可以用 php 找出短的起始标志<?是否足以在脚本中使用?
<?
是否有一个 ini 变量或者我需要使用输出缓冲来编写一些函数来查看结果?