Alternative to $_SERVER['DOCUMENT_ROOT']?
From: D. Alvarado (laredotornado_at_zipmail.com)
Date: 09/21/04
- Next message: Tony Marston: "Re: Application Scope variables ?"
- Previous message: Rubem Pechansky: "Windows binding for PHP - new release"
- Next in thread: Lucas: "Re: Alternative to $_SERVER['DOCUMENT_ROOT']?"
- Reply: Lucas: "Re: Alternative to $_SERVER['DOCUMENT_ROOT']?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Sep 2004 14:04:58 -0700
Hello, I am running PHP 4 on my Fedora Core 2 dev machine. I made a
lot of calls to $_SERVER['DOCUMENT_ROOT']. Unfortunately, when I move
my application to a Windows environment, running on an IIS web server,
the variable $_SERVER['DOCUMENT_ROOT'] is no longer supported (I
always get an empty string). Is there another variable I should query
that would return this information? I am at the mercy of the hosting
company so sadly, it is probably unlikely that they'll add
'DOCUMENT_ROOT' into their environment variable configuration.
Thanks for your help, - Dave
- Next message: Tony Marston: "Re: Application Scope variables ?"
- Previous message: Rubem Pechansky: "Windows binding for PHP - new release"
- Next in thread: Lucas: "Re: Alternative to $_SERVER['DOCUMENT_ROOT']?"
- Reply: Lucas: "Re: Alternative to $_SERVER['DOCUMENT_ROOT']?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]