Re: $_SERVER['DOCUMENT_ROOT'] on localhost
| From: | Joseph W. Goff | Date: | Wed, 18 Dec 2002 21:47:44 +0000 |
| Subject: | Re: $_SERVER['DOCUMENT_ROOT'] on localhost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128778@lists.php.net to get a copy of this message | ||
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
>