Re: Getting location bar and stripping file-ending of a string..
| From: | CC Zona | Date: | Tue, 13 Mar 2001 21:52:30 +0000 |
| Subject: | Re: Getting location bar and stripping file-ending of a string.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43716@lists.php.net to get a copy of this message | ||
In article <4.3.1.2.20010312204052.00a94380@mail.brillianet.com>,
aviv_r@brillianet.com (Aviv Revach) wrote:
> 2. Let's say I have a string such as:
> "http://www.blabla.com/dir1/dir2/file.php3",
> How can I can strip the file-ending(".php3") out the string?
Option 1: parse_url()
Option 2: strpos() & str_replace()
Option 3: ereg_replace() or preg_replace()
--
CC