I have a page that loads an external Javascript that has some PHP in it:
<- script language="JavaScript" src="http://www.example.com/javascript.php" ->
It works fine, the PHP is processed. The only problem is that I need to pass the URL of the page that has the link to javascript.php.
For example: If I had the HTML page in the address:
http://www.anotherexample.com/index.html. Is it possible to pass that address to PHP? I tried $_HTTP[REFERER], but it didn't work...
I can't use PHP on the HTML page itself.