Home  >  Article  >  Backend Development  >  网页不提示php文件的语法异常

网页不提示php文件的语法异常

WBOY
WBOYOriginal
2016-06-13 12:36:571013browse

网页不提示php文件的语法错误
我在php.ini中设置了display_errors=On 和error_reportingE_ALL & ~E_NOTICE,同时在httpd.conf里设置了php_flag  display_errors        on
php_value error_reporting       2039
这两个参数,运行phpinfo.php,可以正常显示这些参数,但就是不能在网页上显示语法错误。。。一直在想,原因可能是php.ini文件根本就没有执行,于是又写了这样的一个文件:
ini_set("display_errors","On");
error_reporting(E_ALL);
include("test.php");
?>
其中test.php是有语法错误的那个文件,这样的话,肯定可以了吧,结果还不行。。。
哪位大神救救我。。。

php php.ini error_reporting display_errors
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn