|
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/
Navigation:
[Reply to this message]
|