PHP IncludesDescription
How to use includes on your php pages. TutorialThe most common use of php includes is when you are creating a header and a footer for your website.
Here is a an easy example:
<html>
<head>
<title>Page Title</title>
</head>
<body>
<? include "header.php" ?>
The body of your page.
<? include "footer.php" ?>
</body>
</html>
By using an include like this you can edit every page on your site just by editing your header or footer page.
Remember that you will need to create header.php and footer.php in order to include them.
|