Home

Validate E-mail Addresses

15/06/2009 14:33 Paul Norman 0 comments

I know this is a topic with 1001 solutions, but I still get asked for an e-mail validation check from time to time, so here is one that I have used in the past. It's a cut above average as it allows very basic validation, confirmation of a valid domain ending or even performs an MX record check to ensure that a mail server is at least set up for the domain in question.... read article

Convert URLs to Links in a String

14/06/2009 16:23 Paul Norman 0 comments

Another common function that I get asked for is the ability to highlight links in a block of text that contains urls, but doesn't have them within anchor tags. So, to stop me hearing this question and advising people to 'use Google' here is a function that will do this. It very likely isn't bullet proof (and isn't the most elegant thing I've ever seen), but will hopefully be either good enough or provide inspiration for your own solution. ... read article

PHP Function to Apply Multiple Others...

13/06/2009 13:22 Paul Norman 0 comments

From time to time I'll post little snippets of code that I have been asked for, or see requested again and again. One such request is the ability to apply a set of transformations to text (or whatever) again and again without writing them out each time.... read article

Journey to the End of the Night

13/06/2009 12:20 Paul Norman 0 comments

The city spreads out before you. Rushing from point to point, lit by slow strobe lights through dark streets. Stumbling into situations for a stranger’s signature. Fleeing unknown pursuers, breathing hard, admiring the landscape and the multitude of worlds hidden in it.... read article

Removing Wordpress Autosave and Drafts

12/06/2009 17:27 Paul Norman 0 comments

Another problem with Wordpress that has almost instantly begun to bug me is the autosave 'feature' of Wordpress. I simply don't want it on! There doesn't seem to be an option, and despite downloading a plugin to fix it 'Disable Revisions and Autosave' (by Exper) this doesn't seem to work anymore in WP 2.8, damn.... read article

Fixing Wordpress Code Formatting

12/06/2009 16:52 Paul Norman 0 comments

As one of my tasks to make this basic blog I had to learn a little about Wordpress (2.71), just enough to get it skinned and get writing. I very quickly came across what I can only assume must be an extremely common problem that expert users face when writing their posts / pages in this excellent platform, text formatting. At first I thought I was doing something wrong. When I swapped between the Visual and HTML views I seemed to lose any <p> tags (and likely countless others) and when I actually viewed the site's source I had gained <br /> tags... I did what most people do and hit Google for quick solutions, but I couldn't find anything acceptable.... read article