Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Perl FCGI on Linux?
  • From: Alex Daniloff <alex@xxxxxxxxxxxx>
  • Date: Tue, 05 Mar 2002 11:57:00 -0800
  • Message-id: <200203051957.g25Jv0V10670@xxxxxxxxxxxxxxxxx>
Hello SuSE folkz,
My question is related to Apache and Roxen 2.2 FCGI scripting support.

Here is a simple test script to generate html header and the counter
with perl in FCGI mode:

#!/usr/bin/perl

use CGI::Fast qw(:standard);

my $count=0;
my $q;

while($q = new CGI::Fast) {

print $q->header,
$q->start_html(-title=>'FCGI Test'),
$q->table({-width=>'45%',-align=>'center',-border=>'0'},
Tr({-align=>'center'},
td({-align=>'center'},"FCGI is cool: ".$count++))),
$q->end_html();
}

Somehow it produces a double output in the browser window:

FCGI is cool: 1
FCGI is cool: 1

I've tried this FCGI script with Apache and Roxen 2.2 web servers and
I always was getting the same double output.

Could somebody please give me a hint why is that? I couldn't find any
reference on this issue in FCGI manuals or on fastcgi.com web site.

Thank you in advance for any thoughts or sources of information.
Alex


< Previous Next >
This Thread
  • No further messages