Justin Koivisto wrote:
[color=blue]
> olafmol wrote:
>[color=green]
>> 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[/color]
>
> 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).
>[/color]
Sorry, I should have provided this as well (from my bookmarks):
http://php.weblogs.com/Apache_IIS
--
Justin Koivisto -
spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.