Re: Yet another Apache 2 problem

"Paul E. Ross" <[email protected]>
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Brian Aker wrote:
> Are you talking about environmental variables?
> 
>   -Brian
> 
> On Mon, 2003-12-15 at 12:52, Paul E. Ross wrote:
> 
>>Been trying to get SOMETHING to work right in the Apache 2 environment 
>>and finally found what's been causing my errors.  Even though my header 
>>is in php, very few of the php predefined variables are available if the 
>>invoked page is html.  If I copy the "body" page intact to a file with 
>>the same name, but a php extension, I get all the predefined variables.
>>
>>Is there a variable that needs to be set in mod_layout or httpd.conf to 
>>make these variables available at all times?

Yes.  $_SERVER is more important than $_ENV.  $_SERVER is where 
$REQUEST_URI, $SCRIPT_NAME, $HOSTNAME, et al now reside.

-- 
Paul Ross
Senior Software Engineer
Raytheon Technical Services Company LLC
281.280.2997
281.280.4138 fax
713.736.9581 pager
[email protected]
http://www.opengov.us
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.