Reply to Re: error_reporting() does not show error

Your name:

Reply:


Posted by R. Rajesh Jeba Anbiah on 09/15/06 19:17

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

[Back to original 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

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