Reply to Re: Best way to use a header include file?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация