note 63831 added to reserved.variables
| From: | php-general at lists dot php dot net | Date: | Sat, 01 Apr 2006 05:56:08 +0000 |
| Subject: | note 63831 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107118@lists.php.net to get a copy of this message | ||
I was unable to convince my hosting company to change their installation of PHP and therefore had to
find my own way to computer $_SERVER["DOCUMENT_ROOT"]. I eventually settled on the
following, which is a combination of earlier notes (with some typos corrected):
<?php
if ( ! isset($_SERVER['DOCUMENT_ROOT'] ) )
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(
$_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']) ) );
?>
----
Server IP: 64.71.164.2
Probable Submitter: 24.3.105.17
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/note/edit/63831
Del: integrated -- http://master.php.net/note/delete/63831/integrated
Del: useless -- http://master.php.net/note/delete/63831/useless
Del: bad code -- http://master.php.net/note/delete/63831/bad+code
Del: spam -- http://master.php.net/note/delete/63831/spam
Del: non-english -- http://master.php.net/note/delete/63831/non-english
Del: in docs -- http://master.php.net/note/delete/63831/in+docs
Del: other reasons-- http://master.php.net/note/delete/63831
Reject -- http://master.php.net/note/reject/63831
Search -- http://master.php.net/manage/user-notes.php