Re: extracting foo.bar from path/to/file.php/foo.bar
| From: | Curt Zirzow | Date: | Fri, 04 Nov 2005 19:24:40 +0000 |
| Subject: | Re: extracting foo.bar from path/to/file.php/foo.bar | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225118@lists.php.net to get a copy of this message | ||
On Fri, 04 Nov 2005 09:59:16 -0500, Leonard Burton wrote:
> 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'?
See: $_SERVER['PATH_INFO'];
Curt.
--
http://news.zirzow.dyndns.org/