Re: Logging fatal errors and timeout

From: Date: Mon, 08 Aug 2005 23:52:48 +0000
Subject: Re: Logging fatal errors and timeout
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-220265@lists.php.net to get a copy of this message
Thanks. How do I override PHP settings using .htaccess?
Hello RPG, 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


« previous php.general (#220265) next »