I have a file.php
located in www.example.com/folder/
.
I want that file to use include command for files located in www.example.com/include/
.
If I simply use:
<?php include './include/footer.php';?>
It doesn't work, as it will try to search in the physical folder where the file.php
is located, while I need it to refer to the root of my domain.