faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 6 people (50%) answered Yes
Recently 3 of 6 people (50%) answered Yes

Entry

How can I use apache to set PHP Environment variables?

Feb 3rd, 2002 23:02
Matt D, Shane Faulkner, http://httpd.apache.org


Use the Apache directive SetEnv to set environment variables that may 
be referenced in PHP code:
The following Apache article explains with 
examples:http://httpd.apache.org/docs/env.html
example:
SetEnv OS WINDOWS      # set the envariable "OS" to value "WINDOWS"