if you are using frames:
<html>
<head>
</head>
<frameset rows="70%,30%">
<frame src="main.php">
<frame src="footer.php">
</frame>
</html>
or if you just want to create the effect:
// last lines of your php code
// the last line
$footer = "your_footerDocument_here.php";
if (file_exists("$footer"))
{
include("$footer");
}
else
{
PRINT ("unable to find footer ($footer)");
}
// end
include is what does the job of getting the file and stitching it into the current one to make a whole, the if ... bla bla just adds an error reporting feature for debugging/end user.
I would recommend against using frames, they are looked upon in the webdesign community as clumsy and depreciated , the same effect can be created using a mix of CSS, tables and various others, but for that you want to have a look at HTML coding websites like www.createonline.co.uk and webmonkey.