brown2005 Posted September 7, 2006 Share Posted September 7, 2006 Hi, I want to be able to take a URL and strip it so it only comes out with say domain.co.uk.I want the function to be able to combat the following things....1) if it has a http:// or https:// at the front or any other alternative2) if it has www. at front or any other alternative3) if they just put domain.co.uk it just returns domain.co.ukThanks Link to comment Share on other sites More sharing options...
hostfreak Posted September 7, 2006 Share Posted September 7, 2006 You already started a thread about this, http://www.phpfreaks.com/forums/index.php/topic,107070.0.html . Link to comment Share on other sites More sharing options...
brown2005 Posted September 7, 2006 Author Share Posted September 7, 2006 yes i know, but i dont think i explained it properly so i started it again. Link to comment Share on other sites More sharing options...
wildteen88 Posted September 7, 2006 Share Posted September 7, 2006 If you checked your old thread there is a reply there will work. Check the last [url=http://www.phpfreaks.com/forums/index.php/topic,107070.msg429328.html#msg429328]reply[/url] in your old thread. The code provided does what you wnat to do.[url=http://www.phpfreaks.com/forums/index.php/topic,107070.0.html]Link to old thread[/url]Do not double post the same problems, even if you didnt make it clear the first time. Edit the first post in the thread, or reply to your thread with a better explanation of what you are trying to do.Thread closed Link to comment Share on other sites More sharing options...
Recommended Posts