You are here: Re: when does require() not require « PHP Programming Language « IT news, forums, messages
Re: when does require() not require

Posted by Sjoerd on 10/27/70 11:33

You can try:

ini_set("display_errors", "on");

If that does not work, setting an error handler will:

function error_handler($errno, $errstr, $errfile='',
$errline=0, $errcontext=false) {
echo '<p style="font-weight: bold">';
echo $errfile.":".$errline.": ".$errstr;
echo '</p>';
}

set_error_handler('error_handler');

However: "Although display_errors may be set at runtime (with
ini_set()), it won't have any affect if the script has fatal errors."
An error handler will of course also not always work, particularly not
with parse errors.

The good news, you can check for parse errors by running:

php -l filename

 

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

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