Figuring out which page is calling a piece of JavaScript, in PHP
<p>I have a PHP file that generates a JS file, that is being included on a number of sites. I'd like to be able to check which site the file is being included from on each request. I tried using <code>$_SERVER['HTTP_REFERER']</code> in PHP, but that just returns the domain that the JS file is hosted on. </p>

<p>Any ideas would be greatly appreciated.</p>
