Avoid PHP execution time limit?

BTW (@Davmuz), you can only use set_time_limit() function on Apache servers, it's not a valid function on Microsoft IIS servers.

Emanuel: I guess when your friend told you "A friend suggested me to .

1 Thats essentially the client-side implementation of my answer: put it into bits and execute them one by one. However, in this solution, if the browser is closed, the process ends. – The Guy Of Doom Jan 27 '10 at 15:32.

When an operation is done. Then you could use a CRON-daemon to execute this queue every sixty seconds, so it continues to do the work, and finishes the task. The drawbacks of this approach are problems with adding to the queue, with file locking and the such, and if you need the results immediately, this can prove troublesome.

If you are adding stuff to a Db, it might work out. Also, it is not very efficient.

Use set_time_limit(0) but you have to disable the safe_mode: php.net/manual/en/function.set-time-limi... I suggest to use a fixed time (set_time_limit(300)) because if there is a problem in the script (endless loops or memory leaks) this can not be a source of problems. The web server, like Apache, have also a maximum time limit of 300 seconds, so you have to change it. If you want to do a Comet application, it may be better to chose another web server than Apache that can have long requests times.

If you need a long execution time for a heavy algorithm, you can also implement a parallel processing: google.com/#q=php+parallel+processing Or store the input data and computer with another external script with a cron or whatever else.

Please, specify what you have to do, the responses will may be more accurate. – Davmuz Jan 27 '10 at 14:43.

– svens Jan 27 '10 at 14:34 @svens While the OP specifically says he doesn't want to change the time limit, I agree that it is probably going to be the best way to do it. Tl;dr my bad – Funky Dude Jan 27 '10 at 17:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions