June 13th, 2006

How to Append Data to a Text File With PHP

A very good practice for any e-commerce or content syndication site is to build an email subscriber list. I recently had to whip together a quick way of doing this, and didn't have the time to build a database driven system. I used PHP and a text file to build an easy subscriber system. Each new email gets appended to the text file, simple as that. (more…)

June 12th, 2006

Capturing Key Codes with JavaScript

Ever wonder how ThinkFree of Gmail are able to save your content when you hit 'Ctrl + s'? They are capturing the key combination, and using to it fire a client-side function. Here's a function you can adapt to use whichever keycode or combination to suit your purposes. (more…)

June 9th, 2006

Validate an Email Address With PHP

Here is a full-blown function to validate email addresses with regular expressions and a DNS lookup on the domain to make sure that it's not just in valid format, but actually a valid mail server! (more…)

June 7th, 2006

PHP: Access A Variable from an Include File

Recently I ran into a problem with include files. I had a header file which was included in every page, and had a default title. However, in any page calling the header, I wanted to be able to over-write the title, and then display the header. (more…)

« Previous Page