My php include is not working

Glenn

Member
I have installed LAMP and have started working on my web site. For some reason, my include isn't working. Here is what I have.

<?php

$title="Study Question | Your Study Buddy";
$currentpage="includes/pages/index.php";
include "includes/page.php";

?>

It will include a file if it is in the same folder. Why is it not included here?
 

DHDdirect

New Member
If you page templates inside a folder and your includes inside a different folder you may have to use ../ or ./ before the address.
 
Top