Posted by boclair on 09/20/05 10:59
John Dalberg wrote:
>
> I created a header file to be included in every webpage. The header file
> has images that have a path to an "images" folder off the root folder.
> However if I use this header file for web pages that reside in subfolders,
> I have to change the path of all the image links to '../images/' instead of
> 'images/'.
>
> What's the best way to have a single header file which *any* web page,
> regardless of its location, can use without modifying it to suit certain
> webpages depending on their location?
>
Is this PHP you are talking about? In that case at least header
locations MUST be absolute and is usually advisable.
For PHP, see http://au3.php.net/header
Louise
[Back to original message]
|