Originally Posted by lil9
nope still no luck sadly
i tried both those but it just brings up errors again.
does the menu HAVE to be in the same folder as the page that i want it to display on?
No, your include files can be anywhere in your directory tree. You just have to know how to reference them.
This is just an example of how you could set your directory structure up, off the root folder:
- /images - Images
- /includes - For all included files
- /etc, etc, etc - You get the picture.
As you develop your pages, call your included file based on where the calling file is and where the included file is. For example, lets says you are in a folder called /test and you are including a file from /includes. I would do something along the lines of this...
// I need to go down a folder to get to root
$page_root_path = "./../";
// Now I need to grab a file to include from the includes folder
include_once($page_root_path . "includes/file_to_included.php");
This should work just about anyhere in your scripts as long as you tell the $page_root_path var where you are in relationship to the root folder.