thecard Posted July 15, 2008 Share Posted July 15, 2008 If I've got a variable which is a string of a URL, how can I strip the string down to just the name: e.g. http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 goes to: phpfreaks.com is there a way? Quote Link to comment Share on other sites More sharing options...
widox Posted July 15, 2008 Share Posted July 15, 2008 Check out the parse_url() function http://us2.php.net/function.parse-url Quote Link to comment Share on other sites More sharing options...
thecard Posted July 15, 2008 Author Share Posted July 15, 2008 One word: AWESOME. Really didn't expect it to be that easy. Nice one widox. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.