I've got three files:
index.php
Code: Select all
<?php
echo "hello";
include ("system/page.php");
echo "bye"
?>
Code: Select all
<?php
include ("system/lib.php");
print_content();
?>
Code: Select all
<?php
function print_content(){
echo "bla bla bla";
}
?>
That means that php includes the files relative to the path of the first executed file. Is there a possibility to use paths relative to the file where I specified the include?