basename unix/windows
| From: | ROBERT MCPEAK | Date: | Thu, 25 Apr 2002 13:40:59 +0000 |
| Subject: | basename unix/windows | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94555@lists.php.net to get a copy of this message | ||
I'm running php on linux and wish to use basename() to get the file name
from a windows path.
basename() on our linux/php box can't seem to cope with the use of
backslash (\) in the Windows paths I'm feeding it.
In other words:
basename(/usr/blah/doh/yuck/wow/abigfile.html)
resolves to : abigfile.html
but
basename(adirectory\onawindowsbox\abigfile.html)
does not resovle to abigfile.html.
Does anybody have a workaround for this?
Thanks!