note 116358 deleted from function.header by crell
| From: | crell@php.net | Date: | Thu, 19 May 2022 16:19:59 +0000 |
| Subject: | note 116358 deleted from function.header by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218503@lists.php.net to get a copy of this message | ||
Note Submitter: DC
----
In the bottom note:
<?php
$uri = rtrim(dirname($_SERVER['REQUEST_URI']), '/\\');
?>
not $_SERVER['PHP_SELF']!
(But the strange behaviour of dirname is a problem for URL ending by a directory without file name!)