Re: no document_root?
From: Justin Koivisto (spam_at_koivi.com)
Date: 11/28/03
- Next message: Justin Koivisto: "Re: no document_root?"
- Previous message: ,hj: "Losing random characters in HTML email"
- In reply to: olafmol: "no document_root?"
- Next in thread: Justin Koivisto: "Re: no document_root?"
- Reply: Justin Koivisto: "Re: no document_root?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 19:25:11 GMT
olafmol wrote:
> Hello,
>
> on my windows NT4 server with IIS4 and PHP Version 4.3.1 i don't have any
> "DOCUMENT_ROOT" environment var. Is there any reason i dont get this? Can i
> do something about it? I need this because i run a template with an include
> inside an eval-block that is requested from 2 different locations.
>
> Thanks, Olaf
>
>
>
DOCUMENT_ROOT I believe is specific to Apache, or at least IIS doesn't
set it. Because of this, when working with IIS, I work off the system
path via:
$DOCUMENT_ROOT=dirname(__FILE__);
which is in a file that I place in the document root. I then have that
file included by all other scripts (sometimes with auto_prepend).
--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
- Next message: Justin Koivisto: "Re: no document_root?"
- Previous message: ,hj: "Losing random characters in HTML email"
- In reply to: olafmol: "no document_root?"
- Next in thread: Justin Koivisto: "Re: no document_root?"
- Reply: Justin Koivisto: "Re: no document_root?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|