Alex Poole

Pragmatic PHP, MySQL, Marketing & Technology

Alex Poole header image 5

Entries from April 29th, 2008

Multiple Versions of Internet Explorer on one PC

April 29th, 2008 No Comments

I’m trying this on my main (work) laptop because it scares me, but this installer:
http://tredosoft.com/Multiple_IE
..looks like it might be very cool for testing clientside code in all versions of IE. I’ll install some time it on a secondary machine (my wife’s PC :)  )
Cheers to Robby for the tip.

Tags:

Split UK postcodes in PHP

April 29th, 2008 1 Comment

Found this useful function for splitting postcodes in Python.
http://www.brunningonline.net/simon/blog/archives/001292.html
Needed something similar in PHP, so:

$tests = Array(’cr0 2yr’ , //(’CR0′, ‘2YR’)),’cr02yr’ , //(’CR0′, ‘2YR’)),

‘dn16 9aa’ , //(’DN16′, ‘9AA’)),

‘dn169aa’ , //(’DN16′, ‘9AA’)),

‘ec1a 1hq’ , //(’EC1A’, ‘1HQ’)),

‘ec1a1hq’ , //(’EC1A’, ‘1HQ’)),

‘m2 5bq’ , //(’M2′ , ‘5BQ’)),

‘m25bq’ , //(’M2′ , ‘5BQ’)),

‘m34 4ab’ , [...]

Tags: