This topic is locked

Include Page

6/30/2006 3:39:37 PM
PHPRunner General questions
B
bbanks author

I started using this program about a year ago and am amazed by its abilities. The problem is that it was a while before I figured out what all it could do.
So I was creating directories for every table that I was using on the site and have customized all of the pages.
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.

P
pergerta 7/1/2006

Just a quick idea: Have you tried
include "./dir_name_of_menu/menu_file_name"
?

Alexey admin 7/3/2006

Bart,
use slash in the beginning to indicate a site root.

i.e.

include("/include/menu.php");

B
bbanks author 7/5/2006

Just a quick idea: Have you tried

include "./dir_name_of_menu/menu_file_name"
?


Yes I have tried this and it doesn't work
thanks

Bart,

use slash in the beginning to indicate a site root.

i.e.


Tried this also, nothing seems to work.
Thanks