04-01-2007, 09:39 PM
|
|
|
Confirmed User
Join Date: Aug 2004
Posts: 913
|
Quote:
Originally Posted by SmokeyTheBear
$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
|
|
|