Sleep() function with Apache in Windows
Posted: Sat May 21, 2005 2:36 pm
Well.. I have a serious problem with sleep() function. I tried to make script which displays one sentence, and the second one after 5 sec delay. Script look like this:
The scipt works fine but it displays both sentences at once
I tried all kinds of flush(),ob_flush etc. but it didn't help. I heard that's because I am running script on Windows server and sleep() works ok only in Linux. Plz help
JCART | PLEASE USE
Code: Select all
<?php
echo "It..";
sleep(5);
echo "works?";
?>I tried all kinds of flush(),ob_flush etc. but it didn't help. I heard that's because I am running script on Windows server and sleep() works ok only in Linux. Plz help
JCART | PLEASE USE
Code: Select all
TAGS AND REVIEW [url=http://forums.devnetwork.net/viewtopic.php?t=21171]POSTING CODE IN THE FORUMS[/url][/color]