راهی بجز $_server['http_host']; برا بدست اوردن نام دامنه هست ؟
AazamZandi New Member Oct 18, 2009 #2 PHP: function Get_Host_Name_From_Url($Url) { preg_match('@^(?:http://)?([^/]+)@i',"$Url", $matches); $host = $matches[1]; return $host; }
PHP: function Get_Host_Name_From_Url($Url) { preg_match('@^(?:http://)?([^/]+)@i',"$Url", $matches); $host = $matches[1]; return $host; }