DoorsRent Posted March 23, 2009 Share Posted March 23, 2009 Are Cron jobs limited by the same timeout restrictions as regularly served .php pages? setting - "max_execution_time" ? Also, is there any way to tell what jobs are currently in progress? or what php scripts are currently running? Thanks. Link to comment https://forums.phpfreaks.com/topic/150746-cron-job-timeout/ Share on other sites More sharing options...
Maq Posted March 23, 2009 Share Posted March 23, 2009 Are Cron jobs limited by the same timeout restrictions as regularly served .php pages? Cron jobs just call the script at a certain time, it would be the script itself timing out. Also, is there any way to tell what jobs are currently in progress? or what php scripts are currently running? Sure, assuming you're on a linux server, type in: ps -ef Link to comment https://forums.phpfreaks.com/topic/150746-cron-job-timeout/#findComment-791969 Share on other sites More sharing options...
DoorsRent Posted March 23, 2009 Author Share Posted March 23, 2009 The script timing out is what I meant. I figured it was just as if I loaded it up in my browser, but wasn't sure. Thanks. Link to comment https://forums.phpfreaks.com/topic/150746-cron-job-timeout/#findComment-791976 Share on other sites More sharing options...
The Little Guy Posted March 23, 2009 Share Posted March 23, 2009 just place this at the top of the script: set_time_limit(0);// Unlimited time // place the rest of the PHP here Link to comment https://forums.phpfreaks.com/topic/150746-cron-job-timeout/#findComment-792100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.