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 Matt on 05/27/07 18:59

Rami Elomaa wrote:
>
> 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?
>

It's the latter when running through a browser. I did find output
buffering to be enabled. I disabled it, restarted httpd, but the same
results.

; output_buffering = 4096
output_buffering = Off

12345 is outputted only after the script exits.

Matt

 

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

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