Re: no document_root?

From: Justin Koivisto (spam_at_koivi.com)
Date: 11/28/03


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.


Relevant Pages

  • Re: no document_root?
    ... Justin Koivisto wrote: ... I need this because i run a template with an ... Because of this, when working with IIS, I work off the system ... Please use comp.lang.php for PHP related questions, ...
    (comp.lang.php)
  • Re: IIS performance problem and SQLXML.
    ... > using IIS and SQLXML. ... > This server has only this application. ... > The template has this query: ...
    (microsoft.public.sqlserver.xml)
  • Re: Login popup when access a file in the server
    ... as has rights to the folder/files ... template in my server. ... When I run this script in my local ... settings in IIS or physical folder. ...
    (microsoft.public.inetserver.asp.general)
  • server error templates
    ... Does anyone know where I can download some error page template? ... change the default error pages that came with IIS. ... Aaron. ...
    (microsoft.public.dotnet.framework.aspnet)
  • server error templates
    ... Does anyone know where I can download some error page template? ... change the default error pages that came with IIS. ... Aaron. ...
    (microsoft.public.dotnet.general)