you could set an ENV var in a shell (the httpd's user's login shell)
and then add
PerlPassEnv VARNAME
to httpd.conf
your code can then check it via $ENV{VARNAME}
Of course you only need to do this if you've done PerlSetupEnv Off (1.3.x) or
are under SetHandler modperl in (2.x)
Otherwise you can just set it in your ENV and its automatically passed through.
Jonathan Vanasco wrote:
I'd like to flag whether my app is running on dev or prod with a
variable that's in httpd.conf
( right now i manually toggle a var in a config file, and its driving me
nuts )
i wanted to use PerlSetVar, but that's read at request time - which
won't work, as this needs to be read before a request
so then i looked at
custom Apache configuration directives
http://perl.apache.org/docs/2.0/user/config/custom.html
and everything in there looks way more complicated than what i could
possibly need
can anyone point me in the right direction?
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."