Now I noticed you are on windows. There is a user note in the manual that says that this function does not work as expected on windows:

[snip]
(by priebe at mi-corporation dot com)
Note that register_shutdown_function() does not work under Apache on Windows platforms. Your shutdown function will be called, but the connection will not close until the processing is complete. Zend tells me that this is due to a difference between Apache for *nix and Apache for Windows.


I'm seeing similar behavior under IIS (using php4isapi).
[/snip]

But acording to this bug http://bugs.php.net/15209 the behavior changed between php 4.0 and 4.1. There should be new function named apache_register_shutdown_function and I have a feeling I have seen it somewhere in the manual but it seems to be gone. :(

Manuel Vázquez Acosta wrote:
Add before the exit:
set_time_limit(0);

http://php.net/set_time_limit

Curt



You didn't get the idea. I want to be able to keep running a script disconnected from the browser; once all the output has been sent to the browser there's no need for the user to wait until the script finish its execution. set_time_limit(0); makes the scripts to run completely without the 30 seconds error; but it will keep the connection with the browser; so it does not solve the problem though

Thanks anyway,
Manu.


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



Reply via email to