title: PHP on windows path comes up with backward slash
body: <p>Trying to setup a php website on my windows os. PHP code that I got from someone has lines like </p>
  
  <pre><code>$base_path = realpath('./../').'/'; 
  </code></pre>
  
  <p>This ends up with the string like <code>c:\abc\xyz/</code></p>
  
  <p>What settings I need to do on windows to force it to come with <code>/</code>. I read about <code>DIRECTORY_SEPERATOR</code>, but there are various places I need to worry about and hence if I could have it so that the realpath comes up with <code>/</code> it will be of great help to me.</p>