I am trying to create my web pages with some dynamic structure and am running into some problems.
Here is the structure I was trying to use:
root directory
files
index.php
directories
navigation
files
navigation.html
toolbtn1.swf
toolbtn2.swf
webhosting
files
index.php
What I am attempting is to have my navigation files stored in the navigation directory and used as an include in each of my pages. The problem I am having is if the page that the include is in is not in the same directory as the navigation page then it doesn't work properly.
I know it has something to do with the link structure being that sometimes I will need to have it link to navigation/navigation.html but if the page is down in a directory below the root it would actually need ../navigation/navigation.html
I hope I have explained this enough to get the problem across to you. If you need further information just let me know and I will see if I can further clarify.
Thanks in advance!
Greg Hicks
Greg Hicks
VB.Net (Newbie) Programmer
Here is the structure I was trying to use:
root directory
files
index.php
directories
navigation
files
navigation.html
toolbtn1.swf
toolbtn2.swf
webhosting
files
index.php
What I am attempting is to have my navigation files stored in the navigation directory and used as an include in each of my pages. The problem I am having is if the page that the include is in is not in the same directory as the navigation page then it doesn't work properly.
I know it has something to do with the link structure being that sometimes I will need to have it link to navigation/navigation.html but if the page is down in a directory below the root it would actually need ../navigation/navigation.html
I hope I have explained this enough to get the problem across to you. If you need further information just let me know and I will see if I can further clarify.
Thanks in advance!
Greg Hicks
Greg Hicks
VB.Net (Newbie) Programmer