$_SERVER['DOCUMENT_ROOT'] on localhost
| From: | rolf vreijdenberger | Date: | Wed, 18 Dec 2002 21:38:43 +0000 |
| Subject: | $_SERVER['DOCUMENT_ROOT'] on localhost | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128776@lists.php.net to get a copy of this message | ||
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