【发布时间】:2011-04-19 08:54:38
【问题描述】:
这是我的代码:
echo 'foo';
error_reporting(E_ALL);
echo 'this line doesnt end in a semi colon'
echo 'i should get an error here';
当我运行它时,我没有收到任何错误。
不确定这是怎么回事?
【问题讨论】:
-
只有我喜欢
tail -f错误日志吗? :-) -
@prodigitalson 取决于站点状态。对于developnemt,我更喜欢在屏幕上
-
I get no error.表示I get all 3 lines printed或I get a blank screen? -
@Col。弹片,我得到一个空白屏幕。我添加了
php_flag dislay errors 1。起初没有用。然后我在我的 apache2.conf 文件中添加了<Directory "/var/www/aquaplatinum">Order allow,deny Allow from all AllowOverride All </Directory>并重新启动了 apache,现在出现了错误。 -
@Col。弹片:是的,即使是为了开发,我也更喜欢日志......这是因为我喜欢
E_ALL|E_STRICT,但我不希望警告输出伪造 xhtml。另外,我通常直接在 Eclipse 中作为外部工具运行tail:-)
标签: php error-reporting