Posted January 11 '10 at 05:54 PM
Posts: 33
PHP code can go anywhere in the page most of the time, I usually put mine in the <body> section. But for things like restricted access pages for registered users only, you should put the restrict code at the very top, even before your <html> tag. On my site I'm including the footer. The footer file can either be a complete html file or just a div, it works either way. Here's my footer.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
A.footer:link {
text-decoration:none;
color:#14A1FF;
font-size:1.1em;}
A.footer:visited {
text-decoration:none;
color:#14A1FF;}
A.footer:active {
text-decoration:none;
color:#14A1FF;}
A.footer:hover {
text-decoration:none;
color:#75C7FF;}
</style>
</head>
<body>
<div>
<center><a class="footer" href="about.php">about</a> | <a class="footer" href="faq.php">faq</a> |
<a class="footer" href="/help">help</a></center>
</div>
</body>
</html>
Now I did it that way because I needed a stylesheet for my footer, and I didn't know if the stylesheet would work if it wasn't in the <head> portion and I didn't have time to experiment

. But you could just have a file with <div id="footer">copyright © 2010</div> in it, include it, and it would display that line of code.
I set up a test website that used the ?page=page format a while before, letmme see if I can find it...

If I can I'll post the code.