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:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 2:52 PM > To: [EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php