I can't get this script to work correctly:
----------------------
#! /usr/bin/perl
print "Content-type: text/htmlnn";
print "OK, Here I go. I am going to count from 1 to 5!", "n";
$| = 1;
for ($loop=1; $loop <= 5; $loop++) {
print $loop, "n";
sleep (2);
}
print "All Done!", "n";
exit (0);
-------------------
It should write the first 2 lines and then output the numbers one at a time to the browser. But if you try it:
http://www.battlesim.com/cgi-bin/tools/t.pl
or
http://texas.battlesim.com/cgi-bin/t.pl
It waits until the script is done before displaying.
The servers are running 2 different apache servers and the script works outside of EV1:
http://lestat.processing.net/cgi-bin/t.pl
I have been combing the internet and looking for a configuration option in apache but everything says that after 1.3 buffering has been eliminated.
Am I missing something simple or is there some kind of buffering going on?
Thanks.