opalelement Posted May 11, 2009 Share Posted May 11, 2009 Lets say I have about 10 scripts, s1.php, s2.php, etc. I want to run all these scripts from scripts.php by using require(), so I only have to run one script in a cron job. Each script takes about a minute to execute. Would I set_time_limit of about 600 at the top of scripts.php, or would I need to set this limit at the top of each s*.php individually for about 60? Thanks, .:Opalelement:. Quote Link to comment https://forums.phpfreaks.com/topic/157688-solved-time-limit-in-main-file-or-required-files/ Share on other sites More sharing options...
premiso Posted May 11, 2009 Share Posted May 11, 2009 You would have to set the time_limit at the main script. The others will override it, but not reset the time limit. The main processing script is what matters. Quote Link to comment https://forums.phpfreaks.com/topic/157688-solved-time-limit-in-main-file-or-required-files/#findComment-831567 Share on other sites More sharing options...
opalelement Posted May 11, 2009 Author Share Posted May 11, 2009 Thank you premiso Quote Link to comment https://forums.phpfreaks.com/topic/157688-solved-time-limit-in-main-file-or-required-files/#findComment-831569 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.