Tijnema ! wrote: >> 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. Well, looking at my "error.log" in my PHP directory tells me, that several php-files exceeded maximum scripting time. That's why I asked. And I observed receiving a blank page, which is not satisfying ... so what would I do in Apache (or IIS) to get an error-code (HTTP code that is)? -- ... Black holes suck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php