On 31/05/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to