You are here: Re: causing a ............. delay in the script « PHP Programming Language « IT news, forums, messages
Re: causing a ............. delay in the script

Posted by Rik on 12/18/43 11:51

Ian Davies wrote:
> Just tried the sleep function it doesnt seem to work
> code as follows
>
> echo "$prog_msg";
> sleep(1);
> echo "$prog_msg2";
>
> The two messages appear at the same time. am i using this function
> correctly Thought it might not be long enough delay but same result
> with sleep(10); Ian

Perhaps:
echo "$prog_msg";
flush();
sleep(10);
echo "$prog_msg2";

If that doesn't work, look at the comments in
http://www.php.net/manual/en/function.flush.php

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация