View Single Post
Old 04-01-2007, 09:39 PM  
Mr. Mike
Confirmed User
 
Join Date: Aug 2004
Posts: 913
Quote:
Originally Posted by SmokeyTheBear View Post
$url = "http://www.site.com/blah/etc.com";
// remove the http://
$url = str_replace("http://","",$url);
// split at "/"
$exp = explode("/",$url);
// result is everything before first /
$end = $exp[0];

theres shorter ways but to show whats going on
Perfect, thank you!!
__________________
Sig for sale. ICQ: 163-545-054
Mr. Mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote