note 45327 deleted from reserved.variables by tomsommer

From: Date: Thu, 02 Sep 2004 20:23:05 +0000
Subject: note 45327 deleted from reserved.variables by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75956@lists.php.net to get a copy of this message
Note Submitter: kerrykobashi at yahoo dot com ---- 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); }

« previous php.notes (#75956) next »