ID:               11759
 Comment by:       m dot v dot d dot wetering at xs4all dot nl
 Reported By:      blankart at muenchen-lottoteam dot de
 Status:           Bogus
 Bug Type:         IIS related
 Operating System: W2K
 PHP Version:      4.0.6
 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------

[2001-06-28 12:16:09] [EMAIL PROTECTED]

DOCUMENT_ROOT is an environment/server variable set by Apache.  You
will need to determine the equivalent if there is one for IIS.

Brian.

------------------------------------------------------------------------

[2001-06-27 19:41:03] 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





------------------------------------------------------------------------

[2001-06-27 19:37:15] blankart at muenchen-lottoteam dot de

DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version).
Works fine on Linux / Apache



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=11759&edit=1

Reply via email to