You are here: Re: Simple Ping Tool - Display Each Line « PHP Programming Language « IT news, forums, messages
Re: Simple Ping Tool - Display Each Line

Posted by Rami Elomaa on 05/27/07 18:46

Matt kirjoitti:
> Schraalhans Keukenmeester wrote:
>> At Sun, 27 May 2007 08:03:29 -0700, Matt let h(is|er) monkeys type:
>>
>> If you tried the example I posted I have no explanation why it won't
>> work.
>> It definitely does on my local machine AND my isp's server. You're
>> running
>> on a Linux box or...?
>>
>> Sh.
>
> Yes, unfortunately I just get the end result printed when going through
> a browser. Running the script through CLI seems like it prints each
> line separately.

Make sure you're not using output buffering, check php.ini for this. Do
your other scripts work as expectedly? If you do like this:
<?php
while($i++<5) {
print($i);
sleep(5);
}
?>
does it print the numbers one-by-one with 5 second intervals or are they
all printed at once, after 25 seconds when the script exits?

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

 

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

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