How to handle actions that may take a long time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I'd like to know your opinion about how to handle events that may take more than a minute to finish in PHP. In this case, the code is performing a recursive action on a large LDAP tree where I'd like to present something like a status page ("Please wait, blah blah" with some animated gif or so), while the action takes place in background.

Is it possible to fork away this PHP code and set some SESSION vars to trigger the end of the status page? Or do I have to put this action behind a one pixel image and act when the page is "really" complete? Also I'm not sure how to handle the script execution timeout problem...

Any ideas/hints? Some feedback would be appreciated ;-)

Cheers,
Cajus

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux