I am having a tough time with setting the include property per page.
It seems that it works fine when everything is in the same directory but if i reference a page from another directory then everything stops working, as it probably should.
Now whats the best way to reference classes and files from different directories in php? There must have been someone who have figured out the trick to reference a file from a different folder.
Currently, i am doing it as per the following
include ("../config/Authenticate.php");
Now Authenticate.php may reference another class or include another code. So how do you make it all work together?