header
 
     
 
pixel
pixel pixel

Long running PHP scripts

If you have a PHP script that may run for longer than 30 seconds (eg - looping through lots of database data), start your code as follows:
<?php
set_time_limit
(0);
?>
This will give the php script potentially infinite running time. In some cases, you might want to add this too which has the script continue running even if the browser is closed:
ignore_user_abort();

Unhelpful Helpful Rating 3.8 (score out of 5, no. of ratings: 32)
Comments
Comment by John A Cove on 2005-04-14
Wicked, thanks

Comment by John on 2005-06-05
I think this is dependant on Safe Mode being Off in PHP... i may be wrong. Great tip .. thanks

Comment by discount Michael Jordan Shoes on 2010-09-17
Air Jordan Shoes are always so attractive, good quality can ensure the wearer's feet, not only that, the Michael Jordan Shoes has become a fashion, many young people are very fanatical Air Jordan. High price so many people can realize their dreams. Well now, our products directly from third-party products, so we can provide cheap Jordan Basketball Shoes and New Jordan Shoes, high quality, excellent service, come on, give yourself a choice. We offerAir Jordan 1, Air Jordan 2, Air Jordan 3,Air Jordan 4, Air Jordan 5, Air Jordan 6, Air Jordan 7, Air Jordan 8, Air Jordan 9, Air Jordan 10, Air Jordan 11 and so on!

Post a Comment
Name
Email
(optional)
Comment
RatingUnhelpful Helpful
Security Image* (this is just to prevent spam submissions)
Security Image