I'm prettty new to php. I'm attempting to use include_once to include the header & footer in all files on the site with those files in a folder - /includes. Clever, huh?
Anyway, the header & footer have either graphics in another folder (/images) or links to other pages in other folders. The function works fine, but the graphics do not show, & when I right-click to view the properties of the graphic, it is pointing to the folder where that particular page resides. The same with the links. All I want to do is have 1 header & 1 footer file so that only 1 or 2 files get changed, instead of bunches!
Please, how do I do this?
Here is the include_once example statement: <?php include_once '../../../../includes/_Header.html'; ?>
Here is a portion of the html code of the header:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td
<p><img src="com.gif" width="468" height="65" border="0" /></a></p>
</td>
<td
<div><img src="web.logo.gif" width="100" height="75" border="0" /></a>
<table>
<tr>
<td>for address/phone number information, pass mouse over the logo.</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
Here is the include_once example statement: <?php include_once '../../../../includes/_Footer.html'; ?>
Here is a portion of the html code of the footer:
<table>
<tr>
<td><a href="../index.html">Home</a></td>
<td><a href="../SiteMap.html">SiteMap</a></td>
<td><a href="../info/Contacts.html">Contacts</a></td>
Our web site is hosted on a shared server, running apache, so I cannot make changes to php.ini.
This is driving me nuts! Hope I described this clearly. Probably not.
Thanks.