title: Getting an error for $_server['SCRIPT_NAME']
body: <p>I am trying to get path of page via</p>
  
  <pre><code>&lt;?php
  
  /**
  * @author 
  * @copyright 2013
  */
  
  $current_file = $_SERVER["SCRIPT_NAME"];
  echo $current_file;
  
  
  ?&gt;
  </code></pre>
  
  <p>It gives an error Notice: Undefined index: SCRIPT_NAME</p>
  
  <p>Also I included it in my login page code</p>
  
  <pre><code>&lt;form action="&lt;?php echo $current_file;?&gt;" method="POST"&gt;
  Username : &lt;input type="text" name="username"/&gt; Password : &lt;input type="password" name="password" /&gt;
  &lt;input type="submit" value="LogIn" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>It also gives an error regarding $current_file</p>