XiaoRulez Posted July 8, 2006 Share Posted July 8, 2006 well, i got this file db_update.php normal execution time for the current database size is about just over 5 minutes. all it does is it updates a few variables for each user.The execution timeout for the new another server i'm working on is only 120 seconds. Is there a way for me to change the execution time within the script? Because it also decides wether or not to update based on a few things. i can't have it allowing a 10 minute execution for all files. Quote Link to comment https://forums.phpfreaks.com/topic/14001-execution-time-can-i-make-exeption-without-phpini/ Share on other sites More sharing options...
micah1701 Posted July 8, 2006 Share Posted July 8, 2006 you should be able to use ini_set() to temporarily override the php.ini settings.check out the manual page on it: http://us3.php.net/ini_setsee if that helps. Quote Link to comment https://forums.phpfreaks.com/topic/14001-execution-time-can-i-make-exeption-without-phpini/#findComment-54676 Share on other sites More sharing options...
XiaoRulez Posted July 10, 2006 Author Share Posted July 10, 2006 kool, thanks. ;DKinda off the php topic:I was told about, by someone, that i might be able to set a Cron job for the updates... I'm using CPanel, how might i do this?eg, all rows in table 'users' change the value of all 'credit' +1 if 'credit' isn't over 300 Quote Link to comment https://forums.phpfreaks.com/topic/14001-execution-time-can-i-make-exeption-without-phpini/#findComment-55416 Share on other sites More sharing options...
micah1701 Posted July 10, 2006 Share Posted July 10, 2006 there is a tutorial here at phpfreaks.com for setting up cron jobscheck out:http://www.phpfreaks.com/tutorials/28/0.phpI don't use cPanel, so i'm not sure if it has a GUI for this, but I know that my host (using sphera) doesn't.it has to be done through the command lins (using a SSH client like PuTTy)The tutorial link above was pretty helpful, but not exactily compatible with my host, so I had to do some research and tweak it a bit. Give it a try and post any questions you still have. Quote Link to comment https://forums.phpfreaks.com/topic/14001-execution-time-can-i-make-exeption-without-phpini/#findComment-55477 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.