Fatal error while including my php file using require_once()
<p>I am trying to include the files in the php files to my ajax called function.</p>

<p>the way I have written the code is </p>

<pre><code>define('ROOT_PATH', dirname(__FILE__));
require_once  ROOT_PATH. '/lib/dao/SqlFun.php';
require_once  ROOT_PATH. '/lib/Templates/apply.php';
</code></pre>

<p>But its generating the error saying </p>

<p><b>Warning</b>:  require_once(C:\Program Files... </p>

<p><b>Fatal error</b>:  require_once() [function.require]: Failed opening required  "filepath.php".</p>

<p>But all those files are there in my project folder itself.</p>

<p>What might be the problem here. If its wrong way then which is the right way to do this.</p>

<p>Thanks in advance.</p>
