PHP INCLUDES
Basically, we are slicing your main layout code into 3 sections, so go ahead and open your layout in notepad.
Your normal layout code should have a title at the top, along with meta tags, and a link to CSS (all the normal stuffs).
1. make a new page tiltled HEADER.PHP
* Now go back to your layout in notepad, and select the TOP portion of your layout code (Everything that is constant on ALL PAGES) And PASTE it into HEADER.PHP.
2. Make a new page titled index.php
* This is where your MAIN page will show up. (enter page) whatever...
* Go back to your layout in notepad, and select all of your main page content (updates) (welcome message) whatever...
* Paste that in index.php and save
3. Make a new page titled footer.php
* Return yet again to your notepad where your layout is.
* Select and copy everything thats left at the bottom (that you havent copied yet), and paste it into footer.php (everything that is CONSTANT at the bottom of your layout should go here)
4. NOW, close the layout in notepad (if you did everything right, you wont need it anymore.)
5. Open index.php, and paste this code ABOVE EVERYTHING
But without the dollar signs.
NOW, place THIS code UNDER EVERYTHING (at the bottom)
But without the dollar signs.
Now, open your internet browser, and type in your site URL... if you did it correctly, you should see your site all put together!=)
Remember, every page you make MUST have the include tags On the top and bottom of EVERY page (just like we did on index.php)
Also, every page on your site should end in .php (not .htm or html)
IF THIS HELPED YOU REMEMBER TO LINK BACK!!!!!!!!!!!!!!
Search for it!
Copyright: Graphicaddiction.net
Graphicaddiction.net is not affiliated with myspace.com in anyway