in reply to fcgi script not working as expected (apache)

You can't access things like $ENV{REMOTE_HOST} because the environment variables are set on a per-process base, and there should be only one fastcgi instance per apache process, not per request.

All this information is encapsulated in the CGI::Fast objects, so don't throw that object away as you do now in the header of your while-loop, but assign it to a variable instead.

I don't know why your counter isn't increased, though.

Replies are listed 'Best First'.
Re^2: fcgi script not working as expected (apache)
by jeanluca (Deacon) on Dec 12, 2008 at 15:23 UTC
    Most of the code I'm using comes from cpan! http://search.cpan.org/~lds/CGI.pm-3.42/CGI/Fast.pm