Re: Getting the domain from an url?
| From: | Michael Kimsal | Date: | Sun, 13 May 2001 03:31:32 +0000 |
| Subject: | Re: Getting the domain from an url? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52606@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.parse-url.php
On Sat, 12 May 2001, John Vanderbeck wrote:
> Hey all,
>
> I am quite horrible when it comes to regexps, but I have a string that
> contains a complete url, like:
> http://www.domain.com/this/is/it.html
>
> And I need to strip everything but the domain so that I am left with:
> www.domain.com
>
> Can anyone help me out?
>
> - John Vanderbeck