> > [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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php