View Single Post
Old 04-07-2005, 09:38 PM  
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
Php help needed...

Is there a better way to get this other then doing it in 2 steps?

$site = preg_replace ('#www.#is', '', $_SERVER['HTTP_HOST']);
$site = preg_replace ('#.com#is', '', $site);

I want just the parts inbetween www and the last . where its .com/.net etc.

Thanks
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote