I'm building a website in Dreamweaver and have created a menu/navigation bar which is called to each page by
[INDENT]<?php include 'menu.php'; ?> [/INDENT]
This works fine when the menu.php and the pagename.php files are in the same directory (in this case - "pages")
I am building gallery pages and want to put those in a different directory called galleries, with sub directories such as gallery1. (ok, they will have the artist's name, but you get the idea)
<?php include 'menu.php'; ?> no longer works. I understand it doesn't work because the menu is in a different directory. The following comes up on the page where the menu should be.
[INDENT]Warning: main(menu.php): failed to open stream: No such file or directory in /home/steamya/public_html/galleries/gallery1/gallery_test1.php on line 55
[/INDENT]
What is the syntax I need to refer to the menu in the pages directory?
Or, should I put the menu somewhere completely different and if so, where and how do I link to it on each page?
So far, I can get it to work it only if I have the menu in each directory. By the time I have a bunch of different artists represented that somewhat defeats the purpose of having one menu that I can make global changes to.
Thanks,
laura