A simple web page that you can upload to your web site for testing a MySQL database connection.
Resolving transaction concurrency issues in a PHP+MySQL multi-user environment
Here’s how I’m implementing my solution to the lost update concurrency issue by comparing timestamps generated when a record is saved and accessed.
How to Geolocate Visitors Using an IP-to-Country Database
In this post, I’ll illustrate how to use the IP-to-Country database available from http://ip-to-country.webhosting.info/ to identify the real-world geographic location of visitors to a web page (geolocate) based on their IP addresses. Once you know where a visitor is physically located, you can do all sorts of nifty things, such as send them location-aware content [...]
Using timestamps to reduce WordPress comment spam
In this post, I’ll explain how to reduce the amount of comment spam your WordPress blog receives by using an unobtrusive ‘handshake’ between the two files necessary for a valid comment submission to take place. I’ve written a few different articles on reducing comment spam by means of a challenge response test that the visitor [...]
A collection of PHP code snippets
This is a collection of php code snippets that seem to come in handy rather often. They are assembled here more for my own organization than anything else.
Fixing warnings in the WordPress Sociable plugin
This plugin is once again actively supported. Please download the latest version from http://wordpress.org/extend/plugins/sociable/. I’ve fixed some errors that I was experiencing with version 2.0 (dated 2007-02-02) of the Sociable WordPress plugin by Peter Harkins. Specifically, when running WordPress 2.2+, I would get the following warnings when saving changes: Warning: implode() [function.implode]: Bad arguments. in [...]
Defeating contact form spam by hiding the webmail script
My clients and I have been receiving increasing amounts of spam sent through our own contact forms. Not being a spammer myself, I’m left to speculate on how one sends spam through a webmail form, but I’ve come up with two ways of preventing it from happening. Both of these methods involve editing the contact [...]
A plugin for adding the post date to wp_get_archives
The WordPress function wp_get_archives(‘type=postbypost’) displays a lovely list of posts, but won’t show the date of each post. This plugin adds each post’s date to those ‘postbypost’ lists, like so: Recently 07.30Ardamis.com’s Google Page Speed score is 93/100 07.21Ardamis.com is HTML5 07.17How to send the correct headers to leverage browser caching 07.14I want this Microsoft [...]
Halo 3 Service Record WordPress Plugin
This plugin allows you to add information from your Halo 3 Service Record to your WordPress blog.
Apricot – A Minimalist WordPress Theme
Apricot is a text-heavy and graphic-light, widget- and tag-supporting minimalist WordPress theme built on a Kubrick foundation. Apricot validates as XHTML 1.0 Strict and uses valid CSS. It natively supports the excellent Other Posts From Cat and the_excerpt Reloaded plugins, should you want to install them. WordPress version 2.3 introduces native support for ‘tags’, a [...]