正则获取域名前缀
$domain = preg_match(’/(http|ftp|https)://(.*?)/(.*)/’,$_GET[’url’],$result);
$n = preg_match(’/(.*.)?w+.w+$/’, $_SERVER[’HTTP_HOST’], $matches);
print_r(str_replace(".","",$matches[1]));
访问:282次
分我秋柏实,问言归何时
$domain = preg_match(’/(http|ftp|https)://(.*?)/(.*)/’,$_GET[’url’],$result);
$n = preg_match(’/(.*.)?w+.w+$/’, $_SERVER[’HTTP_HOST’], $matches);
print_r(str_replace(".","",$matches[1]));
访问:282次