PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #11759 DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version)
Submitted:27 Jun 2001 7:37pm UTC Modified: 28 Jun 2001 12:16pm UTC
From:blankart at muenchen-lottoteam dot de Assigned to:
Status:Bogus Category:IIS related
Version:4.0.6 OS:W2K
View/Vote Developer Edit Submission

[27 Jun 2001 7:37pm UTC] blankart at muenchen-lottoteam dot de
DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version).
Works fine on Linux / Apache

[27 Jun 2001 7:41pm UTC] blankart at muenchen-lottoteam dot de
<? echo $DOCUMENT_ROOT; ?> </P>

Causes the following:

Warning: Undefined variable: DOCUMENT_ROOT in
w:\inetpub\wwwroot\test1.php4 on line 13

[28 Jun 2001 12:16pm UTC] brianlmoon@php.net
DOCUMENT_ROOT is an environment/server variable set by Apache.  You will
need to determine the equivalent if there is one for IIS.

Brian.
[14 Jan 2004 2:32pm UTC] m dot v dot d dot wetering at xs4all dot nl
To solve this problem set the DOCUMENT_ROOT variable in the environment
on your server (ControlPanel >> System >> Advanced >> Environment
variables...). I set the variable in the System variables part and after
a reboot the variable is accessible through PHP.

(Tested on Windows2000 with IIS 5)

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC