![]() lots of file handles being opened and closed, more memory being consumed. Although the dependence on the client connection can be reduced via ignore_user_abort() that was never its intended purpose.ģ) long-running typically means it will have quite different resource requirements than a typical web page script - e.g. Typically NOT keeping a browser window open somewhere waiting for the job to complete is an objective for the exercise. However this is not a good place to keep a long-running program.ġ) webservers are all about turning around requests quickly - indeed most have failsafe mechanisms to prevent one request hanging about too long.Ģ) the webserver ties the request to both the execution of the script and to the client socket connection. ![]() Since we're talking about PHP its fair to assume that in most cases, the initiation will be a PHP script running in a webserver. The first thing to consider is that you need to seperate the the thing which takes a long time from its initiation, the ongoing monitoring and whatever final reporting is required. While these tend to attract lots of replies, they are usually wrong. How I do I start a PHP program which takes a long time to complete and how do I track its progress? It seems this question keeps coming up on the PHP newsgroups and, now that I've plugged into Stack Overflow - I keep seeing it their too:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |