I am trying to include the files in the php files to my ajax called function.
the way I have written the code is
define('ROOT_PATH', dirname(__FILE__)); require_once ROOT_PATH. '/lib/dao/SqlFun.php'; require_once ROOT_PATH. '/lib/Templates/apply.php'; But its generating the error saying
Warning: require_once(C:\Program Files...
Fatal error: require_once() [function.require]: Failed opening required "filepath.php".
But all those files are there in my project folder itself.
What might be the problem here. If its wrong way then which is the right way to do this.
Thanks in advance.
echo ROOT_PATH. '/lib/dao/SqlFun.php';and match the actual location of file with one returned by thisechostatement.