![]() |
|||||||||||
|
PHP is basically a way to change the layout of the site by only editing 2 pages.
Neat huh? It is, and simple too. Just follow these simple steps to find out how it works and how
changing your layout page by page nightmare will dissapear! The first thing you should do is make a file for testing. I suggest the name test.php so you don't get confused but you can use whatever you want, just as long you don't get confused either. Here is what we put into test.php: <?php include('header.txt'); ?> Testing php here! ^^ Or whatever you may wish to say.
<?php include('footer.txt'); ?>
As you may know from the previous step, we need to make the header.txt and footer.txt and we will do that now. Basically, the header file is where the coding that is part of your layout goes before the actual content.
The code for footer.txt is a bit less complicated though as you will find: | ||||||||||