httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: [users@httpd] How to read environmental variables from httpd.conf files
Date Thu, 31 May 2007 09:54:28 GMT
On 31/05/07, ramakrishnaprasad.annasamudram@wipro.com
<ramakrishnaprasad.annasamudram@wipro.com> wrote:
> Pardon me if this is a silly question.But i have started using apache just
> now.I have set an environmental variable in httpd.conf in httpd.conf using
> SetEnv.
> I want to read this variable in a program.I understoo that we cannot read
> using request_rec structure.Is there any apache api to read environmental
> variable set in httpd.conf?

That depends on the nature of the program. If it's an apache module,
see r->subprocess_env (where r is a request_rec). If it's a cgi
script, just read the environment variables as normal. If a php
script, see $_ENV.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message