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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |