How to check if a php script is being called by another script on the server?
<p>I have a script scripty.php</p>

<p>Sometimes this script gets called through the browser.</p>

<p>Other times it gets called by another script on the server.</p>

<p>How can I (securely) check within scripty.php to see whether or not it is being called by the server?</p>
