Re: $_SERVER['DOCUMENT_ROOT'] on localhost
| From: | DL Neil | Date: | Thu, 19 Dec 2002 00:20:35 +0000 |
| Subject: | Re: $_SERVER['DOCUMENT_ROOT'] on localhost | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128791@lists.php.net to get a copy of this message | ||
Rolf,
> > the document_root just doesn't show up in my phpinfo();
> >
> > do windows machines have one anyway?
> > I have used this var before, just not testing it locally.
> >
> > It normally shows up when I use phpifno on the server.
Please check/compare the entries for doc_root = in the two PHP.INI files.
Are they the same/given a value. NB:
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
;doc_root =;;;;;;
Regards,
=dn