On Thursday, April 25, 2002, at 09:54 AM, Matt Friedman wrote:
> Replace the "\" with "/" using str_replace or some such function before
> using basename. Windows will handle either kind of path. Linux does not
> know the "\" as a file path separator. It only knows "/"
Just make sure that you
ROBERT MCPEAK <[EMAIL PROTECTED]> 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?
Conv
Replace the "\" with "/" using str_replace or some such function before
using basename. Windows will handle either kind of path. Linux does not
know the "\" as a file path separator. It only knows "/"
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Original Message-
From:
ROBERT MCPEAK wrote:
> 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?
>
What about str_replace()?
--
PHP General
4 matches
Mail list logo