I am doing this simple code:
<?php print "a ";
print "b ";
flush(); sleep(5);
print "c ";
?> The thing is I have the output in the screen in once. I wanna see a and b before c at screen. This doesn´t work, I don´t know why.
Could you help me? Daniel
Hi,
this might be a helpful resource:
http://www.php.net/manual/en/function.sleep.php
You might need a longer delay for it to be noticable amongst the download delay? There also may be cacheing/buffering going on somewhere in between.
You might be better off using something client-side (i hate to suggest javascript, but....)