max execution time
Posted: Mon May 03, 2010 5:04 pm
Hi.
the situation is this: I need to execute code that finishes job for example after 5 min., but the php max_execution_time is set to 45s. and I can't change it because it's on dedicated server. After 45s. of executing code I get an error: "mod_fcgid: read data timeout in 45 seconds". The questions is - what is the best solution for bypassing this error? And after an error I need to execute code from the place it stoped working... Is it possible to catch server errors in php code?
Need your opinion and experience!
Thanks
the situation is this: I need to execute code that finishes job for example after 5 min., but the php max_execution_time is set to 45s. and I can't change it because it's on dedicated server. After 45s. of executing code I get an error: "mod_fcgid: read data timeout in 45 seconds". The questions is - what is the best solution for bypassing this error? And after an error I need to execute code from the place it stoped working... Is it possible to catch server errors in php code?
Need your opinion and experience!
Thanks