I have a problem with my path. Say I have a PHP file in /home/bla/www/dev/source/test.php. In this test.php file I want to include a file in
/home/bla/www/config/conf.php
<?php
include_once("");
?>
I don’t want to include it like include /home/bla/www/config/conf.php. How can I do it?
PS: This fails:
include_once("../../config/conf.php");
I’d suggest to use an absolute path instead of a relative:
This would work from any folder.