You are here: Re: error_reporting(E_ALL) fails to show anything - help!! « PHP Programming Language « IT news, forums, messages
Re: error_reporting(E_ALL) fails to show anything - help!!

Posted by Pedro Graca on 02/02/06 03:17

Iván Sánchez Ortega wrote:
> comp.lang.php wrote:
>
>> I am having problems tracing errors in my code using PHP 4.3.9 on Linux
>> RHEL 4 with Apache 2.0.54
>
> Can you run PHP on a CLI in that machine? That would clear things up.
>
> Try:
>
> echo "<?php phpinfo(); ?> " | /usr/bin/php

The CLI and the Apache module may have different configurations.

In my setup, they do

The Apache module
~$ wget http://localhost/info.php -O- 2> /dev/null | grep error_log
<tr><td class="e">error_log</td><td
class="v">/var/www/log/phperrors.log</td><td
class="v">/var/www/log/phperrors.log</td></tr>

This last line, reformatted, becomes
error_log => /var/www/log/phperrors.log => /var/www/log/phperrors.log

The CLI
~$ php /var/www/normal/info.php | grep error_log
error_log => no value => no value

--
If you're posting through Google read <http://cfaj.freeshell.org/google>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация