include - php including file -


i have include in php script files located on 2nd level subdirectory. problem in xampp fails include these files. in netbeans if click on path open files.

require_once("../../config/bootstrap.php"); require_once("../../config/config.php"); 

what may problem? thanks.

try

require_once(dirname(__file__) . "/../../config/bootstrap.php"); require_once(dirname(__file__) . "/../../config/config.php"); 

or in php 5.3+

require_once(__dir__ . "/../../config/bootstrap.php"); require_once(__dir__ . "/../../config/config.php"); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -