Before you start
This tutorial is for developers wishing to develop their own blog software from scratch using PHP and enhance it by storing the entire database as flat files using a version control system called Subversion. This tutorial assumes basic PHP knowledge and no knowledge of Subversion. The application was built and tested on a Windows® machine using PHP and Apache V2.
You will build a Web log (blog) application from scratch using PHP that stores daily blog entries in flat files. Creating the blog application from scratch allows you to customize your blog in whatever way best suits you. Given how important your blog entries will be, it is important that you back up all of your relevant data. This tutorial will show you how to back up your blog using a version control tool known as Subversion.
The following tools are needed to follow along. This tutorial was written on Microsoft® Windows system. The differences should be minimal, if any, for following along using a machine with a different operating system, such as Linux®:
- Web server
- Any Web server can be used. However, this tutorial used Apache V2. Feel free to use Apache V2.x or the IBM HTTP Server.
- You'll need PHP to code along. This tutorial uses PHP V5.0.3. However, anything higher is sufficient.
- A version control tool (the command-line client is
svn), will be used in the last section. Download Subversion, install it, and place its bin directory in your PATH.