i have the following problem:
i have a header.inc in the root directoy which consists of hyperlinks and images.
Now in a directory called toplist i have a file called design.php in which i want to include the header.inc from the root directory.
Now if i open /toplist/index.php the header get's opened the only problem now is that all the links are broken now, due to the toplist being included in the url.
Same goes for the images.
How can i solve this? i don't want to have to specify the whole url for each link and each image.
Also the header gets included inside of a function in design.php
and then i also include a footer.inc at the end of design.php which is also located in the root directory.
The problem now is that the variables set in header.inc aren't available to the fooer.inc and all the images etc are again broken!
Is there a way to globally include the header.inc?
Any help is appreciated!