How to get current PHP page name
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4221333/get-the-current-script-file-name">Get the current script file name</a>  </p>
</blockquote>



<p>I've a file called <code>demo.php</code> where I don't have any GET variables in the url so If I want to hide a button if am on this page I can't use something like this :</p>

<pre><code>if($_GET['name'] == 'value') {
  //Hide
} else {
  //show
}
</code></pre>

<p>So I want something like</p>

<pre><code>$filename = //get file name
if($filename == 'file_name.php') {
  //Hide
} else {
  //show
} 
</code></pre>

<p>I don't want to declare unnecessary GET variables just for doing this..</p>
