RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

From: Date: Fri, 04 Nov 2005 21:56:20 +0000
Subject: RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar
Groups: php.general 
Request: Send a blank email to php-general+get-225110@lists.php.net to get a copy of this message
> > [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

« previous php.general (#225110) next »