You are here: How to handle actions that may take a long time? « PHP « IT news, forums, messages
How to handle actions that may take a long time?

Posted by Cajus Pollmeier on 10/12/06 11:09

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация