I have a PHP script running every hour or so. The script does a long process which is expected to be more than 2 hours. But my PHP is timing out every 60 seconds. I have used set_time_limit(0); but this is not allowed in safe mode i guess. So could you guys please tell me how to have infinite execution time without really changing the safe mode settings ?
I have a PHP script running every hour or so. The script does a
Share
Set the cron tab using php -n [path_to_your_script]
flag ‘n’ tells php to ignore the php.ini file settings.