Haze
July 20th, 2001, 01:40
I have no idea what im doing when it comes to php, but what I want to do is to be able to include a header and footer that are seperate php files. Anyone know how this is done?
I tryed doing this but it doesnt work. Am I wrong or what?
<?PHP
require ('/header.html');
?>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>asdfasdfasdf</td>
</tr>
</table>
</center>
</div>
<?PHP
require ('/footer.html');
?>
I tryed doing this but it doesnt work. Am I wrong or what?
<?PHP
require ('/header.html');
?>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>asdfasdfasdf</td>
</tr>
</table>
</center>
</div>
<?PHP
require ('/footer.html');
?>