Include-function in an included element
Posted: Thu Aug 02, 2012 1:12 pm
Hi, PHP-programmers out there.
I've been working on my website for a while now. My website contains a left column. That column is included on all pages using the <?php include("file.php); ?>-function, and that creates a problem on my website, because that column does also use the Include-function, and when I then navigate to files in other folders, I get the "No such file or directory in"-error, because the include-function does not accept absolute paths.
Does any of you know the answer of this?
Best regards,
Sebastian Stoll.
I've been working on my website for a while now. My website contains a left column. That column is included on all pages using the <?php include("file.php); ?>-function, and that creates a problem on my website, because that column does also use the Include-function, and when I then navigate to files in other folders, I get the "No such file or directory in"-error, because the include-function does not accept absolute paths.
Does any of you know the answer of this?
Best regards,
Sebastian Stoll.