Jim Lawless' Blog


My Blog Engine

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.

stumbleupon Save to StumbleUpon
digg Digg it
reddit Save to Reddit
facebook Share on Facebook
twitter Share on Twitter
aolfav More bookmarks


Previous post: The October 10th Bug
Next post:MailSend is Free


About Jim ...


Subscribe to this blog!



Subscribe via e-mail


Click **here**
to try out MailWrench;
a command-line SMTP /
SMTPS (Google Gmail)
mailer for Windows.


Follow me on Twitter

http://twitter.com/lawlessGuy


Recent Posts

A Forthcoming Marvel Movie Villain

Uninstalling Problematic Windows Software

Don't be Hatin'

A JavaScript REPL for Android Devices

MailSend is Free

My Blog Engine

The October 10th Bug

A Review of Kevin Mitnick's Book Ghost in the Wires


Random Posts

Invoking the Default Windows Screen-Saver

Blogoversary

Setting Windows Console Text Colors in C

Windows Text to Speech in WSH JavaScript

Pi Day Meets the HTML5 Canvas

A TCP Command Line Interface in Rhino JavaScript

BSave and BLoad for the Commodore 64

Tracing XSLT with a Tiny Java Web Server

Structuring my Thinking

A Quine in C


Full List of Posts

http://www.mailsend-online.com/bloglist.htm


Recent Posts from my Other Blog

Remembering Dr. San Guinary

Why Some Web Sites will go Dark on Jan 18th

SNL Superhero Skit

More Ruby Games

My Ruby Game Challenge Entry

Steal this Bookmarklet

Nerd Toys

Learn New Jargon, You Must

Spot the Wiebe

Tech Magazine Glory Days

Book Review : Paull Allen - Idea Man

A 90's Experiment in Online Systems - The U.S. West CommunityLink Service