Time consuming loops produce 404? |
[eluser]j3nnings[/eluser]
I've tried set_time_limit() as well as ini_set('max_execution_time', 0), but it seems like if the script takes over a set amount of time it will produce a 404, and not the normal "max execution time reached" PHP error. For example, the following code produces a 404: Code: function loop() Any ideas?
[eluser]Dam1an[/eluser]
At which point did you try calling set_time_limit()? I tested that function, and it worked fine (default XAMPP install) I just read the user guide for set_time_limit, and it has no effect when in safe mode, is this the case for you?
[eluser]j3nnings[/eluser]
set_time_limit() is called right at the start of the controller function safe mode is off I'm on dreamhost, I know CI and DH usually have problems together, think this may be the case?
[eluser]Dam1an[/eluser]
Out of curisoity, what is it that you're doing that takes 30+ seconds to process anyway? Maybe you should invest some effort in improveing the performance there
[eluser]j3nnings[/eluser]
I had my cron set up to run a php file because I was having trouble running php through cgi. Though, I recently got support through irc.freenode.net (channel ##php and #dreamhost) and everything seems to be working OK. Thanks for your help! |
Welcome Guest, Not a member yet? Register Sign In |