Host unlimited blogs, sites, forums for $4.95 only with this host

Web Hosting : PHP sleep() problem

Hostgator and Bluehost are our best webhosts and godaddy.com is the best domain registrar.

This web hosting thread started by cybercast on 28 November 2008

I have a script that is running a loop that waits 30 seconds to execute each time.

$time=30;

while (){

run a mysql update

echo “ok”;

}

in my browser i got the ok every 30 secs.. that is fine. The problem is that the mysql update is done all at the same time.

Is there a way to make the mysql update wait the 30 secs????

I have being using flush(); sleep; and I get the same result.

Any help will be greatly appreciated.

Cheers from sunny (not to sunny today) Panama.

Discuss this at WHT or read more about bluehost and hostgator

This entry was posted in Discuss Hosting Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->