how to view only file name by $_SERVER['PHP_SELF'] and not GET values appended with it
<p>In one of my page <code>image.php?id=somenumber</code> , I am using <code>&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;</code> to recognize this page in the common sidebar. But using this <code>$_SERVER['PHP_SELF']</code> yields also the value of id as <code>image.php?id=32</code> which I don't want. </p>

<p>How do I only get the filename?</p>
