sekman adlı üyeden alıntı: mesajı görüntüle
<?php


include '/baglanti.php';

$a = $_SERVER['HTTP_REFERER'] ?? null;

if (strpos($a, 'http://www.xxxxxxxx.com/') !== false) { ---------> bundan birden fazla nasıl ekleyebilirim arkadaşlar 3 4 site eklemek istiyorum mesala

$player_seo = $_GET['yayin_seo'];

$bilgilerimsor=$db->prepare("SELECT * from player WHERE player_seo='$player_seo'");

$bilgilerimsor->execute();

$bilgilerimcek=$bilgilerimsor->fetch(PDO::FETCH_ASSOC);

?>
Bunu iki yöntemle yapabilirsin.

1. Veya Operatörü ile

if (strpos($a, 'http://www.xxxxxxxx.com/') !== false || strpos($a, 'http://www.aaaaaa.com/') !== false || strpos($a, 'http://www.bbbb.com/') !== false) {
// Codes
}
2. Url Parse sadece domaini array içerisinde arama:

$a = parse_url($a);

if(in_array($a['host'], ['aaaa.com', 'bbbb.com', 'cccc.com'])){
// Codes
}