Posted by Jim Moseby on 11/04/05 23:56
>
> [snip]
> What do I need to do to extract foo.bar from path/to/file.php/foo.bar
> [/snip]
>
> The manual is your friend ;o)
>
> http://www.php.net/basename/
>
Beware that, in the case of an url like
"http://www.example.com/path/to/file.php/foo.bar?foo=bar&bar=foo",
basename() will return everything past the last "/", in this case
"foo.bar?foo=bar&bar=foo".
JM
Navigation:
[Reply to this message]
|