FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP does not flush output on IIS7 ..
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP does not flush output on IIS7 .. [message #178595 is a reply to message #178594] Tue, 10 July 2012 11:06 Go to previous messageGo to previous message
brillisoft is currently offline  brillisoft
Messages: 5
Registered: July 2012
Karma:
Junior Member
header("Content-Type: text/html; charset=utf-8");

function flush_buffers(){
ob_end_flush();
ob_flush();
flush();
ob_start();
}

ob_start();
flush_buffers();
echo "starting...<br/>\n";
for($i = 0; $i < 3; $i++) {
flush_buffers();
print "$i<br/>\n";
flush_buffers();
sleep(2);
}

flush_buffers();

print "DONE!<br/>\n";


$myFile = "test.php";
$fh = fopen($myFile, 'r');
$source = fread($fh, filesize($myFile));
$source = htmlspecialchars($source);

print "<p><hr>Here is the code of this program:<pre>\n";
echo $source;
flush()
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extracting multiple matches from a string using preg_replace
Next Topic: Check out www.phpscribble.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 09:34:04 GMT 2024

Total time taken to generate the page: 0.04564 seconds