Manage your content with PHP

by Volker Weber

In this article we’ll build a simple, template-driven site that separates style, content, and structure in your website. We’ll create a cross-browser stylesheet switcher that remembers the user’s preferences, touching on php variables, cookies, if statements, and including pages with require_once.

The separation of style from content has become the bugbear of the HTML developer. Traditionally, we’ve used well-written CSS and XHTML to achieve this separation, and we’ve seen how much easier it is to update our sites or provide multiple styles when we write our markup this way. By adding some very basic PHP to this mix, we can take this modularity a step further, making it easier not only to update our styling, but our structure as well. In essence, we can create our own basic Content Management System.

More >

Comments

A propos PHP & content management. Why reinventing the wheel? There are a number of opensource CMS based on MySQL and PHP out there.
The one I think is best by far is Typo3 http://www.typo3.com. A Danish project, it has a huge following. It is becoming a typomania in Germany. It is a bit tricky to start with, but after successfully having passed those first hurdles, typo3 offers endless possibilities. The user interface is nice and thought through. The soon coming extension manager is a real breakthrough.
It's opensource and can be downloaded from sourceforge (or via typo3.com). If you don't want to spend time on the server config, typo3server.de is offering a hosted typo3 preconfigered solution. Typo3server.de is also publishing a nice doc in German for the first steps.
Have fun...
Moritz

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Recent comments

Volker Weber on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 01:14
Samuel Orsenne on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 00:02
Martin Rosenberg on Danke Bahn, geht doch at 23:56
Volker Weber on Things I learned while signing up for Bluehouse at 19:59
Mathias Ziolo on Ubuntu for the Asus Eee Netbooks at 17:33
Stuart Mcintyre on Things I learned while signing up for Bluehouse at 15:58
Flemming Riis on Bluehouse does not support my browser at 15:30
Thomas Radigewski on Bluehouse does not support my browser at 15:26
Stuart Mcintyre on Bluehouse does not support my browser at 15:25
Volker Weber on Bluehouse does not support my browser at 15:03
Stuart Mcintyre on Bluehouse does not support my browser at 14:59
Daniel Haferkorn on Bluehouse does not support my browser at 14:51
Ben Poole on Bluehouse does not support my browser at 14:43
Petite Abeille on XING expands into UK and Ireland at 10:50
Stuart Mcintyre on XING expands into UK and Ireland at 10:47
Stuart Mcintyre on XING expands into UK and Ireland at 10:42
Volker Weber on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 09:52
Stephan H. Wissel on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 04:39
Henning Heinz on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 22:32
Volker Weber on Things I learned while signing up for Bluehouse at 22:09
Frank van Rijt on Ubuntu for the Asus Eee Netbooks at 21:57
Jef Reynders on Things I learned while signing up for Bluehouse at 21:56
Volker Weber on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 21:03
Yves Luther on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 21:00
Jan-Piet Mens on Things I learned while signing up for Bluehouse at 20:45

Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions

Twitter Updates

More >

Poll

Can you bring a camera phone to work?

Getting poll results. Please wait...

Local time is 01:37

visitors.gif
102 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Heise Online
Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?
Are you buying from the US?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2008 Volker Weber.
All Rights Reserved.

Impressum