Welcome Guest, Not a member yet? Register   Sign In
Timeout in image library due to looping process request
#2

[eluser]Aken[/eluser]
Try setting the timeout explicitly in your script: http://php.net/manual/en/function.set-time-limit.php

Otherwise, in situations like this when I needed to do a ton of loops, I scripted it like so:

1) Check the database for necessary entries still needing processing.
2) If entries exist, get X number of them. If not, exit().
3) Process entries.
4) Use header() (or in CI's case, you can use redirect()) to reload the page and start again.

The page will process and reload itself until no entries exist, and you'll be within your time limit since it's a new page load each time.


Messages In This Thread
Timeout in image library due to looping process request - by El Forum - 08-11-2011, 06:44 PM
Timeout in image library due to looping process request - by El Forum - 08-12-2011, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB