note 123472 added to function.dirname
| From: | bobray at softville dot com | Date: | Fri, 28 Dec 2018 05:04:29 +0000 |
| Subject: | note 123472 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209955@lists.php.net to get a copy of this message | ||
Be aware that if you call dirname(__FILE__) on Windows, you may get backslashes. If you then try to
use str_replace() or preg_replace() to replace part of the path using forward slashes in your search
pattern, there will be no match. You can normalize paths with $path = str_replace('\\',
'/' ,$path) before doing any transformations
----
Server IP: 208.43.231.9
Probable Submitter: 2a01:4a0:38:1::3 (proxied: 174.227.138.232)
----
Manual Page -- http://php.net/manual/en/function.dirname.php
Edit -- https://master.php.net/note/edit/123472
Del: integrated -- https://master.php.net/note/delete/123472/integrated
Del: useless -- https://master.php.net/note/delete/123472/useless
Del: bad code -- https://master.php.net/note/delete/123472/bad+code
Del: spam -- https://master.php.net/note/delete/123472/spam
Del: non-english -- https://master.php.net/note/delete/123472/non-english
Del: in docs -- https://master.php.net/note/delete/123472/in+docs
Del: other reasons-- https://master.php.net/note/delete/123472
Reject -- https://master.php.net/note/reject/123472
Search -- https://master.php.net/manage/user-notes.php