Re: $_SERVER['DOCUMENT_ROOT'] on localhost

From: Date: Fri, 20 Dec 2002 21:08:43 +0000
Subject: Re: $_SERVER['DOCUMENT_ROOT'] on localhost
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-129019@lists.php.net to get a copy of this message
On Wed, 18 Dec 2002 15:47:44 -0600, Joseph W. Goff <jgoff@users.sourceforge.net> wrote:
Is there a difference between PHP versions on your machine and your site? Have you looked at phpinfo() to see what variables have been set on your system? ----- Original Message ----- From: "rolf vreijdenberger" <rolfvreijdenberger@hotmail.com> To: <php-general@lists.php.net> Sent: Wednesday, December 18, 2002 3:38 PM Subject: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost
hey there, I include files outside the document root in my site. include $_SERVER['DOCUMENT_ROOT']."../inc.php" ; when I use this on the localhost it doesn't find this variable: $_SERVER['DOCUMENT_ROOT'] which makes testing more annoying since I have to upload to my site all
the
time. any ideas on the how and why??? thanks a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
I run a fairly recent PHP version (4.2+) on my personal machine (IIS on Win2k pro), and it doesn't return a fair number of $_SERVER variables. I just figured it was an IIS issue and worked around it. -- sasha

« previous php.general (#129019) next »