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.