RE: [PHP] Environment Variables

From: Date: Fri, 09 Aug 2002 18:17:04 +0000
Subject: RE: [PHP] Environment Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111876@lists.php.net to get a copy of this message
My guess is that you should look into your server's configuration, to see if it recognizes index.php as a valid main page. Maybe it's configured (standard) to detect index.htm / index.html as valid main pages. HTH, C. > -----Original Message----- > From: Robert Morse [mailto:Robert_Morse@brown.edu] > Sent: Friday, August 09, 2002 2:52 PM > To: php-general@lists.php.net > Subject: [PHP] Environment Variables > > > Hello. > > I have run into a weird problem with php. I have a very > short php script that will print out a particular environment > variable. Here is the contents of an index.php file: > > <html><head><title>Test</title></head> > <body bgcolor="#FFFFFF"> > <b> LOOK -- <? print($MY_VAR); ?></b> > </body></html> > > Now, when I go to http://server/index.php, it prints > out my variable as I want. > > LOOK -- MY Test Variable > > > But, when I just go to http://server/ (and I have index.php > as a directory index in the apache server config file) > the variable isn't set and all I get is: > > LOOK -- > > Anybody have any ideas what may be causing this behavior? > > Thanks in advance. > > -- > Bob Morse > Senior Systems Programmer > Brown University > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#111876) next »