Tutorials
Step by step tutorials for Adobe and html web design! I relate my tutorials with my past experiences. My failures, solutions and options for you to play around! Comments, questions and suggestions are welcome. Please email me at: eileen@imaginaryspaces.com
Tutorial of the MONTH September 2008 "UNIFORM PAGES PHP" method!
Preview
I've been asked several times about web designing. How do web masters handle websites that have over 100 pages but each page have the same content (e.g. side bar news/menu). You want to update all at one go instead of page by page. There's a solution. Go with PHP load or include tags to your template. The template can be in both php or html format but the content loading must be in php extensions. So let's start.... (I assume you understand html/php, if not, plz wait for other upcoming tutorials for basic scripting)
Number 1
Create a normal html page. It can be in template format. Upto you! So let's name this html page index.html
Number 2
Create another php page. This php page is your content. Type whatever you want in this page and save it as content.php
Number 3
Now go back to your index.html. Load this code in your html:
<?php include 'content.php'; ?>
Load the code above anywhere you want so long it's in the <body> html.
Number 4
Save everything under the same folder. This method only works if you have uploaded your links to a server (paid/unpaid). Otherwise, if you open it on your computer offline, you will see blank page only!
If you need more help, you can email me at eileen@imaginaryspaces.com
HAPPY WEBBERING! |
|