title: Config.php File Not Working Properly with dirname(__FILE__)
body: <p>My config file looks like this:</p>
  
  <pre><code>&lt;?php
  define('ROOT_DIR', dirname(_FILE_));
  ?&gt;
  </code></pre>
  
  <p>then my html:</p>
  
  <pre><code>&lt;?php 
  require_once ('../../../../config.php');  // back to app root
  ?&gt;
  
  &lt;?php
  $pageTitle = 'title';
  require_once(ROOT_DIR.'includes/content.php');
  ?&gt;
  </code></pre>
  
  <p>I know my config file is loading because I can see my config comments when I view source.</p>
  
  <p>But, otherwise I'm just getting a blank page. Anyone tell me what I'm doing wrong?</p>
  
  <h1>EDIT:</h1>
  
  <p><strong>Error Reporting yields</strong></p>
  
  <pre><code>Warning: require_once(./includes/content.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/MAMP/html/BLX2012/prototypes/19/demo.16/events/2013/PIC/LasVegas/index.php on line 10
  
  Fatal error: require_once() [function.require]: Failed opening required './includes/content.php' (include_path='.:/Applications/MAMP/bin/php/php5.3.6/lib/php') in /Applications/MAMP/html/BLX2012/prototypes/19/demo.16/events/2013/PIC/LasVegas/index.php on line 10
  </code></pre>
  
  <p>[Sorry I wish the above were more readble]</p>