note 63959 added to reserved.variables
| From: | SpikeDaCruz at osu1 dot php dot net | Date: | Tue, 04 Apr 2006 16:42:22 +0000 |
| Subject: | note 63959 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107302@lists.php.net to get a copy of this message | ||
Running PHP 4.3 under IIS 5 on Windows XP, there is no $_SERVER['REQUEST_URI'] variable.
This seems to fix it:
if(!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = substr($_SERVER['argv'][0],
strpos($_SERVER['argv'][0], ';') + 1);
}
----
Server IP: 81.92.200.26
Probable Submitter: 81.193.73.90
----
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/63959
Del: integrated -- http://master.php.net/note/delete/63959/integrated
Del: useless -- http://master.php.net/note/delete/63959/useless
Del: bad code -- http://master.php.net/note/delete/63959/bad+code
Del: spam -- http://master.php.net/note/delete/63959/spam
Del: non-english -- http://master.php.net/note/delete/63959/non-english
Del: in docs -- http://master.php.net/note/delete/63959/in+docs
Del: other reasons-- http://master.php.net/note/delete/63959
Reject -- http://master.php.net/note/reject/63959
Search -- http://master.php.net/manage/user-notes.php