Re: FastCGI with Oracle
Tom Bowden <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
From what I understand you have to specifically set any environment variables that you want to use in the configuration (I use apache and mod_fcgid ). The way I look at -- it is like the taint mode in Perl on steroids. perl -T (or perl -w ?) will generate a warning/error if you use relative paths or there are any environment variables that are considered security risks in your code. FastCgi handles it by not letting you set ANY variables... because that would be a security risk. There is an example in the API that covers how to set up a connection for Oracle. In my particular applications I have to use PGUSER and PGDATABASE. Tom On Dec 6, 2009, at 9:59 PM, A. M. ArunKumar wrote: > That what I was also thinking. Why should FastCGI clear > environment variables. Is there any reason to clear the > environment variables? > > > > Thanks > > Arun > > From: [email protected] [mailto:[email protected]] On > Behalf Of Darren Garvey > Sent: Friday, December 04, 2009 6:48 PM > To: A. M. ArunKumar > Cc: 李波; [email protected] > Subject: Re: [FASTCGI] FastCGI with Oracle > > > > Hi, > > 2009/12/4 A. M. ArunKumar <arun-66HqTtf422AmlAP/[email protected]> > > Thank you libo (I am not sure about the name, since it shows in > chinese language) > > > > The solution which you gave has helped me. But its not after > accept its before that. we need to set it back in the C++ program. > I used the setenv function in c++ and now its connecting to oracle. > > > Is this how it is supposed to happen? I don't see why the FastCGI > library should clear environment variables for the whole > application... > > Regards, > Darren > > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers