This behaves as expected from command line: a line of output every second.#! /perl/bin/perl -w use strict; $| = 1; print "Content-type: text/html\n\n"; print "<html><body>"; for my $i (1..5) { my $data = "<br>Line $i"; sleep 1; print $data; } print "</body></html>"; </p>
When run as a cgi script under apache (win32), nothing prints until the whole thing is ready. I can't find anything in my apache docs about turning buffering off.
So how do I get the partial output displayed in the browser as it is produced?
In reply to (OT?) Output buffering w/Apache by voyager
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |