Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Catalyst issue

by Khen1950fx (Canon)
on Jan 06, 2012 at 10:21 UTC ( #946573=note: print w/replies, xml ) Need Help??


in reply to Catalyst issue

The first thing that you want to do is to check if you're running under FCGI or CGI. A simple way to check:
#!/usr/bin/perl use strict; use warnings; use FCGI; my %env; my $req = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, \%env ); if( $req->IsFastCGI ) { print "This is FastCGI\n\n"; } else { print "This is CGI\n\n"; } print_env( "Request Environment", \%env ); $req->Flush(); sleep 3; print_env( "Initial Environment", \%ENV ); $req->Finish(); sub print_env { my($label, $envp) = @_; print("$label:<br>\n<pre>\n"); my @keys = sort keys(%$envp); foreach my $key (@keys) { print("$key=$$envp{$key}\n"); } print("</pre><p>\n"); }

Replies are listed 'Best First'.
Re^2: Catalyst issue
by rijuroyson (Initiate) on Jan 09, 2012 at 06:03 UTC
    Hi,
    It is FCGI.
    Regards,
    Riju

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946573]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-12-03 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.