This topic is locked

Include page

7/12/2006 9:42:18 AM
PHPRunner General questions
B
bbanks author

I have an include page that is a header and the header includes a side menu and it works fine in every directory, however, when I need to update the menu I have to do it in every directory (alot of directories). Rather than go back and redo all of my customized pages just to add them to one directory is there a way to get the includes to look in the root directory? Include and require will not go above the directory that the page is in.
This doesn't work:
include "./dir_name_of_menu/menu_file_name"
And This doesn't work:
include("/include/menu.php");
Any other suggestions?
Thanks