Re: basename unix/windows
| From: | Stuart Dallas | Date: | Thu, 25 Apr 2002 13:52:17 +0000 |
| Subject: | Re: basename unix/windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94558@lists.php.net to get a copy of this message | ||
ROBERT MCPEAK <RMCPEAK@jhuccp.org> wrote:
> 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?
Convert all \ to / before calling basename.
--
Stuart