Character Sets and Document Encoding
Posted in: Php, Thursday 2nd July, 2009
I've just spent an embarrassingly long time trying to solve a problem with normalizing a string (i.e. getting rid of all non-western characters and replacing them with equivalents)....
cURL Remote Address
Posted in: Php, Monday 1st June, 2009
While trying to stop my Google Analytics code showing up on this site when I access the page I went for the obvious solution - simply to check if the visitor's IP address ($_SERVER['REMOTE_ADDR']) matched the IP addresses I normally access the site from....
Binary IP
Posted in: Php, Tuesday 19th May, 2009
A little bit pointless perhaps, but just a quick little script to convert a users IP address into a binary IP - I can't even recall why I wrote this, but here it is anyway:...
Prototype 'Accordion' Script
Posted in: Development, Saturday 16th May, 2009
A friend of mine was having trouble finding a simple to use effective accordion script to use on his website. After having a look around the web myself I found it really was difficult to track down a really basic yet useful script to achieve this effect....