You are here: Re: error_reporting() does not show error « PHP Programming Language « IT news, forums, messages
Re: error_reporting() does not show error

Posted by comp.lang.php on 09/15/06 20:07

R. Rajesh Jeba Anbiah wrote:
> comp.lang.php wrote:
> > I am trying to debug an error found somewhere within my suite of
> > scripts. Nothing shows up when there's an error, it just simply dies.
> > I tried using error_reporting(E_ALL); to no avail.
>
> 1. Did you add ini_set('display_errors', 1); too ?

Thanx! That turned out to be the one remaining function I forgot to
use! I found the error (or in this case, an embedded MySQL error within
a query string of an unincludeable file)

Phil

> 2. If so, the value of display_errors in php.ini might be set to off
> and the script is throwing parser error. In that case, this may help
> (not tested), if you do not have access to php.ini:
> <?php
> //debug.php
> ini_set('display_errors', 1);
> error_reporting(E_ALL); // better set to
> error_reporting(E_ALL|E_STRICT); if using PHP 5
> eval(file_get_contents('file im testing.php'));
> ?>
>
> --
> <?php echo 'Just another PHP saint'; ?>
> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

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

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