note 45327 added to reserved.variables

From: Date: Thu, 02 Sep 2004 07:22:46 +0000
Subject: note 45327 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-75926@lists.php.net to get a copy of this message
Another way to generate document root. // $_SERVER["DOCUMENT_ROOT"] isn't always set on IIS systems if(!isset($_SERVER["DOCUMENT_ROOT"])) { $pos = strrpos($_SERVER["PATH_TRANSLATED"], $_SERVER["SCRIPT_NAME"]); $_SERVER["DOCUMENT_ROOT"] = substr($_SERVER["PATH_TRANSLATED"], 0, $pos-1); } ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45327 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45327&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45327&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75926) next »