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/
>
> [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
[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
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
4 matches
Mail list logo