I'm trying to use php to develop a site based on templates.
I have files that call a header section, a middle section, and a footer section. This works beautifully provided that the file calling the header.php has the same relative path to the images used in the header.php file. If the file does not have the same relative path (eg. the index.php that is one directory higher), the images in the header don't show. Is there a way that I can resolve this path issue so that the images display in all files that call the header.php irrespective of their location relative to the header file?
I hope my question is even vaguely sensible...
Many thanks!
Juls