Check where request came from
<p>on the site when an image is required the link is like this</p>

<pre><code>&lt;img src="getimage.php?id=&lt;?php echo $name ?&gt;" " width="280px" height="70px"&gt;
</code></pre>

<p>Then on getimage.php it gets the id and from that finds the right picture and displays it.</p>

<pre><code>$id = $_GET['id'];
</code></pre>

<p>This works perfectly. How would I find out where the request came from. So on which page this line below was on </p>

<pre><code>&lt;img src="getimage.php?id=&lt;?php echo $name ?&gt;" "width="280px" height="70px"&gt;
</code></pre>

<p>So ultimately I can know if the image requested is for index.php or about.php etc</p>

<p>Thanks</p>
