note 108186 added to reserved.variables.server
| From: | LOL | Date: | Thu, 05 Apr 2012 13:26:17 +0000 |
| Subject: | note 108186 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186984@lists.php.net to get a copy of this message | ||
For an hosting that use windows I have used this script to make REQUEST_URI to be correctly setted
on IIS
<?php
function request_URI() {
if(!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
if($_SERVER['QUERY_STRING']) {
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}
}
return $_SERVER['REQUEST_URI'];
}
$_SERVER['REQUEST_URI'] = request_URI();
?>
----
Server IP: 69.147.83.197
Probable Submitter: 213.203.153.54
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/108186
Del: integrated -- https://master.php.net/note/delete/108186/integrated
Del: useless -- https://master.php.net/note/delete/108186/useless
Del: bad code -- https://master.php.net/note/delete/108186/bad+code
Del: spam -- https://master.php.net/note/delete/108186/spam
Del: non-english -- https://master.php.net/note/delete/108186/non-english
Del: in docs -- https://master.php.net/note/delete/108186/in+docs
Del: other reasons-- https://master.php.net/note/delete/108186
Reject -- https://master.php.net/note/reject/108186
Search -- https://master.php.net/manage/user-notes.php