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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -