You are seeing this very light version of the page, as you are using an outdated browser!

Onlinetools.org is done in XHTML 1.0 and supports CSS 2.0, please upgrade your browser if you want a better version of this site.

Thank you, please help us developers keep up with the industry rather than patching our code for outdated applications.

open or close right navigation

How to create editable web sites in PHP

 
written by:Christian Heilmann on 26.04.2002
Jump to page: 1  2  3  4  5  6  or read all on one page
 

Separation is necessary

The key to create editable websites is to seperate content from display. This is an absolute must, here or when you create pages from a database or from XML.

What you do is create an HTML document with all the design definitions, like tables, fonts and colors. Where the copy text is supposed to be, you add a small php script.

You put the copy text in a ".txt" file with a catchy name, and save your HTML document as a php file for the time being.

Now, what our script will do is to read the .txt document and print it in the HTML Template.

Ok, that displays it, but it does not make it editable yet, right? Well, wait on, you'll be surprised how easy it is.

more»
Table of contents:

Introduction, what is this about?
Separation is necessary
The template with the script
What the script does
Adding secured interactivity
Goodies and limits

Back to top

Powered by EasyCMS