Re: Testers required
- Posted by mattlewis (admin) Apr 15, 2010
- 1255 views
petelomax said...
mattlewis said...
pathinfo() seems to do most of this work for you
You had me going for a moment there! I take it you mean that's the Linux side sorted out, but of course (removing my code) I get:
No, I ran on Windows, but I guess I didn't read the output carefully enough. Sorry about that.
petelomax said...
And maybe this is missing from the documentation (of pathinfo):
std_slash can be -1 to use / on Linux and \ on Windows, or you can specify "/" or "\\" ('/' and '\\' should behave the same), or in fact any other character or string of your choice. The default (0) is to leave path separators unaltered.
Yes, looks like that never got documented.
Matt