I want to track where exactly is click from youtube video. U have tried with this code. But its return only "www.youtube.com/". I want to print this "https://www.youtube.com/watch?v=_bnur3gHJ0s"
<?
$whr = $_SERVER['HTTP_REFERER'];
print_r($whr);
?>
I want to track where exactly is click from youtube video. U have tried with this code. But its return only "www.youtube.com/". I want to print this "https://www.youtube.com/watch?v=_bnur3gHJ0s"
<?
$whr = $_SERVER['HTTP_REFERER'];
print_r($whr);
?>
Regex is probably your best method of choice. There's a post here that should benefit you.