php.ini文件设置为显示错误时不显示错误

php.ini文件设置为显示错误时不显示错误,php,Php,我在谷歌上花了相当长的时间,但我无法让错误显示在用户界面上 在php.ini文件中,我设置了以下内容: error_reporting = E_ALL | E_STRICT display_errors = On 使用phpinfo()可以看到以下内容 Server API CGI/FastCGI Loaded Configuration File /home/totalteach/etc/php5/php.ini 所以我知道我有正确的php.ini文件

我在谷歌上花了相当长的时间,但我无法让错误显示在用户界面上

在php.ini文件中,我设置了以下内容:

error_reporting = E_ALL | E_STRICT
display_errors = On
使用phpinfo()可以看到以下内容

Server API                  CGI/FastCGI
Loaded Configuration File   /home/totalteach/etc/php5/php.ini
所以我知道我有正确的php.ini文件。 我知道使用FastCGI,在php.ini发生更改后,apacheserver不需要重新启动,所以我没有这样做

My index.php如下所示:

<?php
print("The line below should generate an error.<br>"); 
printaline("This is the line that will generate an error."); 
print("This line will not be displayed due to the error caused by the above line."); 
?>

当我访问该站点时,我只看到“下面的行应生成错误”,而没有看到其他内容。 不过,我希望在这之后看到一个错误。
我在这里遗漏了什么?

phpinfo()
放在printaline函数的前面,然后查看错误报告/显示错误的“本地”设置是什么。其他东西可能会在其他地方压倒它们。e、 g.a.htaccess
php\u value
。你是在运行自己的服务器还是共享主机?在“指令”下,我看到:
display\u errors Off display\u startup\u errors Off
我必须调查一下刚刚和服务器托管公司的一个家伙通了电话。在搞乱了一点之后,他确实重新启动了服务器,然后我们看到了phpinfo()输出中的变化。在页面底部:
致命错误:调用第4行/home/totalteach/public_html/index.php中未定义的函数printaline()
,因此看来fastCGI中的更改确实需要重新启动。