RE: [PHP-WIN] two questions: error_log and timeout
| From: | Sjon | Date: | Mon, 03 Feb 2003 12:57:02 +0000 |
| Subject: | RE: [PHP-WIN] two questions: error_log and timeout | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18317@lists.php.net to get a copy of this message | ||
> Is there a way to force line breaks in the error log?
write your own error_log wrapper. I usually do something like this:
function error ($msg) {
error_log(sprintf('[%s] %s %s', date('d-m-Y H:i:s'), $msg, "\r\n"),
3,
'D:/path/to/error.log');
}
> CGI Timeout
> The specified CGI application exceeded the allowed time for processing.
> The server has deleted the process.
This sounds like IIS trowing away the ISAPI process, instead of a php
timeout.
My advice is the same as Anders's solution, optimizing the page...
Sjon.