Reply to Re: [PHP] Re: Logging fatal errors and timeout

Your name:

Reply:


Posted by Richard Davey on 10/04/17 11:23

Hello RPG,

Monday, August 8, 2005, 9:34:52 PM, you wrote:

RG> I set my error report to 0 just like the ones at
RG> http://www.php.net/manual/en/ref.errorfunc.php: error_reporting
RG> (0);

RG> ... so that I can use the custom error handler function at
RG> http://www.php.net/manual/en/ref.errorfunc.php.

RG> I'm on a shared server, by the way.

You cannot catch Fatal run-time errors with that method of error
handling. The error has occurred before the script settings have had a
chance to be picked up.

Check to see if your host allows you to use .htaccess settings to
over-ride PHP ini settings - for trapping Fatal run-times on a shared
server that's most likely your only option. I've seen some hosts dump
PHP errors to an error_log in the same directory as the script that
caused the error. This might be an option (although not very secure,
it's better than displaying the error across the middle of your site)

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
Zend Certified Engineer
"I do not fear computers. I fear the lack of them." - Isaac Asimov

[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

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