I don't want use $_SERVER['HTTP_REFERER']; to get referrer Exist a mode to pass value got of document.referrer ( that retrieve referrer in javascript) in a variable to use in a Php script?
You need to understand that PHP is run before Javascript so it can be done but you would need 2 pages to do it. One which uses Javascript to get the site and then have the javascript redirect you to another page with a link like this www.mysite.com/getReferer.php?referer=Javascript containing refering site here. Then you use $_GET['referer'] to put that into a PHP script.