Re: Flushing output buffer under mod_perl

2006-07-16 Thread Todd W
""Ibrahim Dawud"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since mod_perl wraps my entire code into a handler subroutine behind > the scenes, I figured out how to access the apache API from a normal > cgi script. Hence, the following example appears to be working under > mod_

Re: Flushing output buffer under mod_perl

2006-07-12 Thread Ibrahim Dawud
Since mod_perl wraps my entire code into a handler subroutine behind the scenes, I figured out how to access the apache API from a normal cgi script. Hence, the following example appears to be working under mod_perl2: #!/usr/bin/perl my $r = shift; use CGI; my $cgi = new CGI; print $cgi->header(

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
Mr. Shawn H. Corey wrote: > Ibrahim Dawud wrote: > >>Hello, >> >>The following code works great using normal perl but does not work >>under mod_perl: >> Oops, I overlooked the fact that you are using mod_perl. I haven't use it for years but I seem to recall that STDOUT is redirected to the socket

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
Ibrahim Dawud wrote: > Hello, > > The following code works great using normal perl but does not work > under mod_perl: > > #!/usr/bin/perl > > use CGI; > my $cgi = new CGI; > print $cgi->header(); > print $cgi->start_html(); > $| = 1; > print $cgi->h2("test1"); > sleep 1; > $| = 1; > print $cgi-

Flushing output buffer under mod_perl

2006-07-10 Thread Ibrahim Dawud
Hello, The following code works great using normal perl but does not work under mod_perl: #!/usr/bin/perl use CGI; my $cgi = new CGI; print $cgi->header(); print $cgi->start_html(); $| = 1; print $cgi->h2("test1"); sleep 1; $| = 1; print $cgi->h2("test2"); sleep 1; $| = 1; print $cgi->h2("test3