View Single Post
Old 02-27-2010, 09:13 PM  
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
php server gurus

I want this to output '.' as it goes, but some output buffering is taking place and it waits to finish the whole thing before there's any output.

Server runs Apache 2.2.9, no gzip or deflate
php 5.2.6
in php.ini;
output_buffering = Off
implicit_flush = On

Code:
<?php

ob_implicit_flush(true);
ob_end_flush();

$i = 0;
while($i++ < 100)
{
	echo '.';
	usleep(25000);
	if ($i%10==0) echo "\n<br />";
}
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote