title: Absolute path with header location
body: <p>abspath()</p>
  
  <pre><code>function abspath()
  {
      echo $_SERVER['DOCUMENT_ROOT'];
  }
  </code></pre>
  
  <p>directory()</p>
  
  <pre><code>function directory()
  {
      echo '/folder/';
  }
  </code></pre>
  
  <p>Code Line:-</p>
  
  <pre><code>header('Location:'.abspath().directory());
  </code></pre>
  
  <p>Gives me the following as output:</p>
  
  <pre><code>C:/xampp/htdocs/folder/
  </code></pre>
  
  <p>When I use </p>
  
  <pre><code>header('Location:'.$_SERVER['DOCUMENT_ROOT'];.directory());
  </code></pre>
  
  <p>It sends me to my index.php in <strong>C:/xampp/htdocs/folder/index.php</strong> 
  Why its not working with functions?</p>
  
  <p>I want to go to <strong>C:/xampp/htdocs/folder/index.php</strong> using this</p>
  
  <pre><code>header('Location:'.abspath().directory());
  </code></pre>
  
  <p>- Is there any problem?</p>