title: dirname(__FILE__) showing backslashes
body: <p>I have a config file in my base directory and I'm trying to figure the absolute path to the directory to use for file includes. However windows is using backslashes in the path.</p>
  
  <pre><code>define( 'ABSOLUTE_PATH', dirname(__FILE__));
  
  include( ABSOLUTE_PATH . "/includes/include.php" );
  </code></pre>
  
  <p>Using this method it returns this path...</p>
  
  <pre><code>C:\xampp\htdocs\websites/includes/include.php
  </code></pre>
  
  <p>As you can see it is a mix of forward slashes and backslashes.</p>
  
  <p>What is the best way for fixing this problem, or is there a better method that I can find the absolute path?</p>
  
  <p>EDIT:</p>
  
  <p>The reason I would like it to use a forward slash is I am serializing the results to be stored in a database. Backslashes are removed when serialized. :)</p>