Search
Recommended Sites
Related Links






Valid XHTML 1.0 Transitional

Valid CSS!
   

Informative Articles

3 Marketing Mistakes Web Site Designers Make When Selling Their Services
Copyright 2005 Jennifer McGroary 1) They don't have their own domain. If you knew that you were going to the primo networking event of the year, would you bring business cards printed with your neighbors telephone number? Heck no! So why would...

An easy way to build traffic
In the old days of the Internet (1995) people said the phrase "build it and they will come" This has changed however.. with more and more sites on the net you have to do something that will attract people. I have found some things that have...

Optimizing Your Website's Design For Search Engines
It is a well known fact that big search engines like Google are paying the most attention to the links that point back to your website. However, that does not mean that your website design does not matter. You should take a break from looking for...

Server Side Programming Languages
Server-side programming languages are scripts that are executed on the server, and are then translated into HyperText Markup Language (HTML) which can be viewed by all web browsers. The two most popular server-side scripting ...

Sins of The Internet: Mousetraps (and worse)
One common unethical web technique is called mouse trapping, which is often used in conjunction with another highly immoral practice called page jacking. In it's simplest form, mouse trapping merely consists of redefining the back function so...

 
PHP & Templates

Much in the same way PHP can display dynamically generated content, PHP can change the whole look of your site. Through a template system and simple variable that sets a session containing the user's preferred template, you can make your site customizable to your visitors. Many sites do this simple procedure to insure a large percent of their visitors are content with the way their site looks.



A template system generally consists of a header file, a body compilation process in a number of files and a single footer file. The header file contains any XHTML compliancy code, the site title, description and keywords and any JavaScript of CSS includes. The body files should contain functions to output the html to make the template but no content, only places for the content to be dynamically inserted. And finally, the footer file should have any copyright information and final closing tags to make the page XHTML compliant.



For more information and examples of template systems, feel free to use the contact link on this page.
About the Author
Professional website developer at simplyPHP.com.

Sign up for PayPal and start accepting credit card payments instantly.