Gordonmac Dot Com

Mostly a web development blog

Recursive file deletion with PHP

Posted: February 18th, 2008 | Tags: | Posted in: PHP, Tutorials

This is a handy PHP function (I can’t remember where I found it) which performs a recursive deletion of every file in a given directory. I’ve been using it to periodically flush cache files created by my CMS on this site. function destroy($dir) { $mydir = opendir($dir); while(false …
Read more…

Styling previous and next links

Posted: January 26th, 2008 | Tags: | Posted in: CSS, Tutorials

Previous and next “pagination” is a fairly common design element found on sites. As the name suggests, it’s a simple navigation structure designed to allow users to move forward to the next, or return to the previous page in a sequence of documents. The purpose of this type …
Read more…

No sex since 1955

Posted: January 19th, 2008 | Posted in: General

A crusty old Sergeant Major found himself at a gala event, hosted by a local liberal arts college. There was no shortage of extremely young, idealistic ladies in attendance, one of whom approached the Sergeant Major for conversation. She said, “Excuse me, Sergeant Major, but you seem to …
Read more…

Merry Xmas!

Posted: December 24th, 2007 | Posted in: General

I’d like to wish everyone who knows me and/or visits Gordonmac dot com a very happy Christmas and best wishes for 2008! Don’t drink (way) to much and take care. Gordon M