Longreen.
aka green88.
14 August 1988.
born in Germany.
52 siblings.
single.
likes drawing on Paint.
music.
DeviantART.
mushrooms pizza.
3D.
Final Fantasy.
motorcycles.
Yahoo.
Msn.
friends.
More?

PHP Includes Tutorial
Home » Goodies » PHP Includes Tutorial
This will explain you how to use PHP includes on your site It’s extremely easy to do, and makes updating super
fast, because you just have to change 1 file to modify the whole site ^_^
Step 1 Make a div layout. Use your style, your CSS’s, etc. Your layout must be complete to proceed (coded). Name it index.html
Step 2 Select all the navigation part of the HTML code and save it in a new file, which you shall call sidebar.php or header.php
Step 3 Delete the part you saved from the original HTML file and replace it with this code: CLICK
Step 4 Save the HTML file as PHP (change extension from index.html to index.php)
Step 5 Upload to your own server and test it. If it works, you just made your first page PHP included! 
Step 6 Use the index.php file as a model to do more pages. The navigation will be 1 file only so it’s easy to update ;D
Any suggestions on how to improve this tutorial? Email me at: green@princecar.net
|