Code needed to include HTML header/footer

antney

Joined: 2006-01-08
Posts: 1
Posted: Sun, 2006-01-08 09:54

I have modified a theme to include:

{php}
include("/home/httpd/vhosts/site/httpdocs/header.htm");
{/php}

This worked but has one significant problem. Since I create my web pages in Dreamweaver the paths are relative. ie. "images/logo.gif" the images are not displayed. Changing the html to something absolute like "/images/logo.gif" works but that isn't so hot when you want to make changes to the header or footer pages.

Is there a easy way to just embed gallary2 into a html page?

Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-08 22:12

you can change your php include path in php.ini to keep using your relative paths.
or just keep using absolute paths, it's not that much work anyway.