retrieve name of calling script / Javascript in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/503469/securing-a-remote-ajax-method-call">Securing a remote ajax method call</a>  </p>
</blockquote>



<p>Is there a way to retrieve the name of the javascript file that called a php script from within the PHP code?</p>

<p>Unfortunately, since I have to call a PHP script from Javascript (for Google maps) on a webpage, this 'invites' to retrieve my data by just calling the PHP script by hand. Checking for the script/file that invoked the PHP script would bring at least some protection.</p>
