Hardwarez Posted November 9, 2007 Share Posted November 9, 2007 I need to update every entry in a database table. The problem is that the code stops running after 30 seconds. Is there a way/a command I can use to allow greater execution time? ??? I am updating a value on a great number of entries from one table to another but php times out before its done. Im not out putting anything 'Till the end of the code. Quote Link to comment Share on other sites More sharing options...
sdi126 Posted November 9, 2007 Share Posted November 9, 2007 You can use the set_time_limit function it takes one parameter which is the number of seconds you want to limit your script to. ***Please not that this function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini. Quote Link to comment Share on other sites More sharing options...
Orio Posted November 9, 2007 Share Posted November 9, 2007 set_time_limit() Orio. Quote Link to comment Share on other sites More sharing options...
coderbari Posted November 9, 2007 Share Posted November 9, 2007 This is your solution-http://www.php.net/set_time_limit Quote Link to comment Share on other sites More sharing options...
geethalakshmi Posted April 18, 2008 Share Posted April 18, 2008 Hi, You can get clear idea of how to get more execution time for PHP scripts in the following link. http://www.hiox.org/index.php?id=82 Regards Geethalakshmi http://www.hiox.org/ http://www.zxcvbnm.in/ Quote Link to comment 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.