Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hello monks,
i run an apache2 server with mod_fcgid and like to have a var i like to share between different scripts. let's assume i have this script:
#!/usr/bin/perl use CGI::Fast; our $x; while ( CGI::Fast->new() ) { print "Content-type: text/html\n\n"; print ++$x; }
this script is named a.cgi AND b.cgi. when i call it with http://url/a.cgi it will increment up the var $x on each instance of a.cgi, the same for b.cgi. but i like that the same variable $x (address in the shared mem or wherever) is incremented regardless if i call a.cgi or b.cgi. they should print out the value of the same address of $x.
this is for sharing database handlers as well as ssl session contexts and other informations which should be provided among different scripts.
i hope the question is clear? how can i manage to share persistent vars between instances of different scripts and not only between instances of the same script in a mod_fcgid / FCGI / CGI::Fast environment ?
greetings & thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_cgid, CGI::Fast share values between different scripts?
by thomas895 (Deacon) on Oct 09, 2012 at 07:22 UTC | |
by Anonymous Monk on Oct 09, 2012 at 07:36 UTC | |
by thomas895 (Deacon) on Oct 10, 2012 at 06:22 UTC | |
|
Re: mod_cgid, CGI::Fast share values between different scripts?
by Anonymous Monk on Oct 09, 2012 at 06:41 UTC | |
by Anonymous Monk on Oct 09, 2012 at 07:29 UTC |