merhaba dostlar php ile referer göndermek istedim lakin hiçbir bilgi değişmiyor nerde sorun olabilir ?
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://siteadi.com/07-referer.php');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_REFERER, 'http://www.mynet.com');
curl_exec($ch);
curl_close($ch);
<?php
if (!isset($_SERVER['HTTP_REFERER'])) {
echo "Pardon tanıyamadım";
} else {
echo "Şurdan Geldin...: ".$_SERVER['HTTP_REFERER'];
}
?>