Originally published on: Tue, 15 Nov 2011.
This blog is powered by:
( NOTE: When I had enabled blog comments, I was using an additional PHP script to process the blog entries. This script is no longer used. )
Each blog post is an HTML fragment. Each fragment can be inserted into a DIV section easily.
When you visit a "named" post on the site, such as http://www.mailsend-online.com/blog/along-came-awk.html, the mod_rewrite rule alters the request so that the document name is passed to the default PHP script.
The default PHP script loads the PHP "include" file, which contains an associative-array of blog posts and the index number of the latest post. The key is the post name, the value is a post number.
The default PHP script then:
I write each post (such as this one) in a simple programmer's text-editor (usually SciTE). I preview the fragment itself in a Firefox.
I then update the "include" file, bumping up the highest index by one. I also add the new document name to the associative-array. Then, I push both the "include" file and the new fragment document to my web site with an FTP script.
I have one other PHP script that I run locally as a command-line PHP app that also uses the "include" file. It generates the list of all of my blog posts:
Click here to see the complete list.
My process of posting a blog item is:
There are downsides to maintaining my own blogging software. I haven't happened upon a good way to format source code that integrates with my blog software. I also haven't figured out a way to categorize each post without using a database or some kind of generator process.
Overall, I like the freedom and simplicity of my approach. The simple nature of my blog engine allows me to tinker with concepts without going to great lengths.
Unless otherwise noted, all text is Copyright ©2011 by James K. Lawless.
Views expressed in this blog are those of the author and do not necessary reflect those of the author's employer. Views expressed in the comments are those of the responding individual.

Save to StumbleUpon
Digg it
Save to Reddit
Share on Facebook
Share on Twitter
More bookmarks

Subscribe to this blog!

Click **here**
A Forthcoming Marvel Movie Villain
Uninstalling Problematic Windows Software
A JavaScript REPL for Android Devices
A Review of Kevin Mitnick's Book Ghost in the Wires
Invoking the Default Windows Screen-Saver
Setting Windows Console Text Colors in C
Windows Text to Speech in WSH JavaScript
A TCP Command Line Interface in Rhino JavaScript
BSave and BLoad for the Commodore 64
Tracing XSLT with a Tiny Java Web Server
Why Some Web Sites will go Dark on Jan 18th
Book Review : Paull Allen - Idea Man
A 90's Experiment in Online Systems - The U.S. West CommunityLink Service