cybercast
11-27-2008, 06:43 PM
PHP sleep() problem
Hello,
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.
__________________
Cyber Cast Intlhttp://www.offshore-web-hosts.comOffshore Hosting, Offshore Dedicated Servers and Offshore VPS based in Panama
Hello,
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.
__________________
Cyber Cast Intlhttp://www.offshore-web-hosts.comOffshore Hosting, Offshore Dedicated Servers and Offshore VPS based in Panama
