Forums

PHP

This topic is locked

PHP universal header and footer?

Posted 08 Jun 2012 06:55:20
1
has voted
08 Jun 2012 06:55:20 devid diya posted:
I am trying to get my header and footer to be on one file each using php so I only have to edit once to change everything. This is what I do-

<?php include("header.php"; ?>

my content

<?php include("footer.php"; ?>

It still doesn't seem to work. It leaves out the header and footer completely. I have the my pages named with the .php file name, they are in the root folder with header.php and footer.php. What could I be doing wrong?
_________________
identify a bed bug

Reply to this topic