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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

java - Why is BlockingQueue.take() not releasing the thread? -