note 68012 added to function.dirname
| From: | legolas558dotsourceforgecommanet at osu1 dot php dot net | Date: | Mon, 10 Jul 2006 11:35:19 +0000 |
| Subject: | note 68012 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114628@lists.php.net to get a copy of this message | ||
I have to disagree with <jo _at durchholz dout org>
In some installations (< 4.4.1, cannot be more precise) $_SERVER['REQUEST_URI'] is not
set, I used the below code to fix it
<?php
if (!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1);
if (isset($_SERVER['QUERY_STRING']))
$_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING'];
}
?>
----
Server IP: 80.241.173.254
Probable Submitter: 151.44.90.54
----
X-Spam-Status: No, hits=3.9 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
UPPERCASE_50_75 autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.dirname.php
Edit -- http://master.php.net/note/edit/68012
Del: integrated -- http://master.php.net/note/delete/68012/integrated
Del: useless -- http://master.php.net/note/delete/68012/useless
Del: bad code -- http://master.php.net/note/delete/68012/bad+code
Del: spam -- http://master.php.net/note/delete/68012/spam
Del: non-english -- http://master.php.net/note/delete/68012/non-english
Del: in docs -- http://master.php.net/note/delete/68012/in+docs
Del: other reasons-- http://master.php.net/note/delete/68012
Reject -- http://master.php.net/note/reject/68012
Search -- http://master.php.net/manage/user-notes.php