note 54868 added to function.dirname
| From: | kluggthis-is-junkattlendotpl at osu1 dot php dot net | Date: | Mon, 18 Jul 2005 14:14:51 +0000 |
| Subject: | note 54868 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92113@lists.php.net to get a copy of this message | ||
Attention with this. Dirname likes to mess with the slashes.
On Windows, Apache:
<?php
echo '$_SERVER[PHP_SELF]: ' . $_SERVER['PHP_SELF'] . '<br />';
echo 'Dirname($_SERVER[PHP_SELF]: ' . dirname($_SERVER['PHP_SELF']) .
'<br>';
?>
prints out
$_SERVER[PHP_SELF]: /index.php
Dirname($_SERVER[PHP_SELF]: \
----
Manual Page -- http://www.php.net/manual/en/function.dirname.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54868
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54868&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54868&report=yes
Search -- http://master.php.net/manage/user-notes.php