Re: How to read environmental variables from httpd.conf files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31/05/07, ramakrishnaprasad.annasamudram@xxxxxxxxx
<ramakrishnaprasad.annasamudram@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux