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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to