How do you get a Cronjob executing a PHP script to run longer than 30 seconds?
问题 How can I rewrite this into a cron that will run every day for longer than 30 seconds? Also, do I need to edit the .htaccess or php.ini file in the cron.php directory to say something? Over the browser it runs just fine for longer than 30 seconds; over the shell, it runs just fine too. But as a cron set task, it dies after 30 seconds. I'm on 1and1 share hosting. 0 12 * * * php5 /this/is/the/file/cron.php 回答1: There are several things that could be terminating your script. One could be the