$veri = explode("www.",$_SERVER['HTTP_HOST'] );
$site = "http://cdn." . $veri[1]."/";
bunu dener misiniz hocam?