PHP: set_time_limit() has no effect
Posted by: Hervard
Posted on: 2007-06-23 05:54:00
I'm trying to limit the maximum execution time of one of my PHP scripts using set_time_limit(1), but it does not seem to have any effect.
PHP's manual states the following:
"[The set_time_limit() function] has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini."
Does Dreamhost have PHP running in safe mode? I'm on Fiji. Am I able to have a php.ini file for myself to edit? Is there any other way to limit my script's maximum execution time?
Any assistance in this matter would be greatly appreciated -- thanks in advance :)