On 4/25/07, Henning Eiben <[EMAIL PROTECTED]> wrote:
Hi,

I have a small sample-application, that uses smarty for the presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this case
I would like to return an appropriate HTTP status-code (might be 500 or
something). Right now I just receive a blank page, as well as a HTTP
status-code of 200, which would indicate that everything is OK!

So what do I need to do?

I don't think this is possible in PHP. But i guess you need to do
something in Apache, to return some special error message. A thing to
keep in mind:
PHP max_execution_time set in php.ini or set with set_time_limit does
not affect system calls, such as database operations.
So, you'd be better off setting the time limit in Apache, and do some
stuff with Apache configuration files to return something.

Of course, every "Apache" could be replaced by "IIS" in above text :)

Tijnema

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to