$a= explode(".com/", $site);
if($a[0]=="http://www.youtube"){
echo "youtube linki";}else{echo "youtube linki değil";}

böyle olması lazım