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

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 8:59 am, Leonard Burton wrote: > What do I need to do to extract foo.bar from path/to/file.php/foo.bar > > $_SERVER['REQUEST_URI'] will return the whole string but is there > anything more direct than doing a regex and 'REQUEST_URI'? http://php.net/basename http://php.net/

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

2005-11-04 Thread Jim Moseby
> > [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 e

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

2005-11-04 Thread Pablo Gosse
[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/ HTH, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-11-04 Thread Leonard Burton
Greetings, What do I need to do to extract foo.bar from path/to/file.php/foo.bar $_SERVER['REQUEST_URI'] will return the whole string but is there anything more direct than doing a regex and 'REQUEST_URI'? Thanks, -- Leonard Burton, N9URK [EMAIL PROTECTED] "The prolonged evacuation would have