ok, this one should be simple for everyone.
i'm writing this CMS for fun like i've said before and i have files in all different folders and all that. what i'm trying to do is set up a main links section up top in the header. they link to important parts of the site. like homepage, login, logout, about us. that goofy crap. well this is my folder hierarchy the way that it is:
[root]
index.php
ini.php
----[classes]
--------> login.php
--------> logout.php
--------> class.db.php
--------> class.session.php
----[functions]
--------> header.php
--------> footer.php
now each page has a header and footer associated with them. i just include those files at the top and bottom respectively. currently in the links that i have up top go like this:
--- [home] --- [login] --- [logout] --- [register] ---
the code for those links are the actual paths and i wanted to do it modularly. the way that it is currently is hard coded (which is fine for all my debugging purposes) but i can't seem to do it any other way currently.
<a href = "http://localhost/member/index.php">home</a>
<a href = "http://localhost/member/login.php">login</a>
<a href = "http://localhost/member/join_form.php">register</a>
<a href = "http://localhost/member/logout.php">logout</a>
what i had in place previously was in the link area was linking to the actual file href = "http://localhost/member/logout.php">logout</a>. the problem with that is that if i decided to click on any of the header links the script would search in the folder that the main script was in. not what i wanted obviously.
normally i can usually figure things out on my own but this is bothering me. i can't seem to figure my way out of this one for some reason and it is really driving me nuts. my current situation is fine with the actual path but i want this bad boy to be more modular. any ideas people?