Welcome to gnomedia codeworks!

This is a blog, a collection of articles, some software projects, some miscellaneous scripts, a kitchen sink... I hope you'll find something useful or interesting.

Blogspam revisited.

September 13th, 2007

Sometime back I wrote about comment spam in the blogs and using fake comment pages in order to catch automated spambots and record their IPs. Over the months I clocked up a few thousand spambots and I thought it might be fun to do something with them. Like block them for a while. :) Read the rest of this entry »

SubberZ newsletter subscription script.

July 25th, 2004

I had a need for a simple, basic, easy to install PHP script for some websites to allow visitors to subscribe/unsubscribe from a newsletter. I found plenty on HotScripts but they were all far too big, complex and hard to modify.
So, I wrote my own and called it “SubberZ”. In the end I called it “SubberZ[Lite]â€? as I have ideas for making it a bit more complicated and capable, but rather than create one big set of scripts, I’ve decided to create a family of scripts, the “SubberZâ€? family. So, there will be “SubberZ[Lite]â€? and “SubberZ”. And maybe even a “SubberZ+”…

Further details available on the SubberZ page.

SnipSrv - a random quote generator.

November 8th, 2003

SnipSrv is a small PHP script to extract a piece of text from a file (which I assume is a quote, but could be anything) and return it. You’ll find it on its own page here.

Making the jump to PHP

August 26th, 2003

Introduction

Any modern day Web programmer has to master a whole range of languages and protocols, from client side scripting through to server side Apache modules. And now, here is PHP, one of the fastest growing server side scripting languages around and you need to add it to your current arsenal of Perl, Python, ASP, JSP, Javascript, Java…

In this article, I’ll point out some of the main areas where things are different from other languages (particularly Perl, Javascript and VB/ASP) to help you get started. After all, programming is programming whatever the language, and most of what you already know can be reused in PHP. Just watch out for those little details!

Read the rest of this entry »

Why PHP?

August 8th, 2003
Introduction

The World Wide Web is a global network of computers, most of them running some form of HTTP (Web) servers. A Web server is a very simple animal, when asked for a web page, it looks for the page and, if it can find it, returns it to the browser. What makes Web servers interesting is when we can ask the server to process the page before returning it. This is the job of server side scripting modules, of which there is wide choice, such as PHP, ASP, Cold Fusion, JSP and Perl CGI. They all have their strengths and their weaknesses and there are situations where one is to be preferred over another.

Read the rest of this entry »