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

Justin Koivisto wrote:
> comp.lang.php wrote:
>> On occasions I see no errors, no parse, no fatal, no warnings, no
>> notices.. and no code either! No HTML, nothing! I get a completely
>> blank page with no content whatsoever.
>>
>> I have at the very top of my page
>> [PHP]
>> error_reporting(E_ALL);
>> [/PHP]
>>
>> As a test to see if even notices would pop up, but nothing.
>
> check to see what the log_errors value is set to in php.ini... if it is
> 1, then you have to check your error.log file rather than the browser.

If you want to override the log_errors directive in php.ini, you can do
that with

ini_set('display_errors', 1);
<http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors>

or, maybe with (I never tested it)

ini_set('error_log', NULL);
<http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log>

--
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

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