I'm writing quite large website, so I decided to use include functions to make it easier to change the banner, menu, footer etc.
Everything works fine as long as the file is within the same file directory. From the other post I found on 'stackoverflow' I found how to made the path for included file working.
The problem I'm having is that even though the actual web page can find the included file it still doesn't work as it seems to not be able to find the right directory for the actual link.
I'm going to try and use an example code to show what I mean... Let's say it is my file directory
- Some Website
- [CSS] [articles] [inc] page.php page2.php
- page3.php
So if i want to link page.php with page2.php the link would be <a href="page2.php">
But if I want to link page3.php with page2.php the link would be <a href="../page2.php">
And I think this is where the conflict is. That the file directory in menu.php is not working for all the pages.
I would really appreciate any help with this.
EDIT:
I will try and explain a little bit better about the structure of the website. Sorry if I am a bit confusing (I sometimes find it hard to explain exactly what I mean as english is not my first language).
This is example of my website file directory.
The only reason I want to use include function is so that I can use the same banner images, menu navigation or footer across all the web pages.

Let's say my menu.php (in 'inc folder') which would be included in all the pages looks like that
<ul>
<li><a href="index.php" class="navon">Home Page</a></li>
<li><a href="contact.php">Contact us</a></li>
</ul>
When I use
<?php include ("inc/menu.php"); ?>
(or any appropriately directed file)
everything appears the way I want it to be, but the problem is that when I press index.php or any other link to a web page from a different directory, it doesn't work.
class="current".