Hi man I want to extract domain name only from long referer url like from http://forums.digitalpoint.com/forumdisplay.php?f=99 I want to get only "digitalpoint.com" how to do this? GlobalCashSite
You can do this $url = "http://forums.digitalpoint.com/forumdisplay.php?f=99"; $parse = parse_url($url); print $parse['host']; Little John