Re: Logging fatal errors and timeout

From: Date: Mon, 08 Aug 2005 18:00:50 +0000
Subject: Re: Logging fatal errors and timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220238@lists.php.net to get a copy of this message
Hello RPG, Monday, August 8, 2005, 6:05:47 PM, you wrote: RG> I use the error handler function found at RG> http://www.php.net/manual/en/ref.errorfunc.php . Whenever a RG> fatal RG> error has occurred, it does not log the error. I tried adding RG> E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_WARNING, E_COMPILE_ERROR RG> and so that whenever they occur, it will log itself to a log file. Where did you add the error level flags? and have you enabled the error log entry in the php.ini? It should look like this: error_reporting = E_ALL|E_NOTICE|E_CORE_ERROR log_errors = On error_log = "D:/php4_error_log.txt" (or where-ever) Stick display errors on for your dev machine too if you want: display_errors = On display_startup_errors = On RG> Another question related to that is how do I log a timeout error RG> for the fopen() function? When fopen() times out, it produces a RG> fatal error and fatal error is not being logged. Fix the above :) 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

« previous php.general (#220238) next »