I’ve just spent all afternoon trying to update a very simple Twitter client to post status updates to Twitter. The code has been using BASIC authentication to post Tweets until now but seeing as that’s about to be discontinued in favour of OAuth I thought I’d better update things. I had no problem using Zend_Oauth_Consumer […]
With the release of PHP 5.3.3 the other day and the announcement of the end of active support for the PHP 5.2 branch I thought it would be a good time to do a bit more experimenting with the new features in PHP 5.3. I would have done this sooner but the hosting company we […]
A client at work wants to run a promotion where a customer will receive a card with a unique 8 digit code on it when they buy something. They will then be able to visit the website to find out if they are a winner or to get a chance to enter a prize draw. […]
I recently published my first class on PHPClasses and thought I would write a brief post about it here. The class allows a developer to send a query to a Google Site Search custom search engine, using the XML API. Google Site Search Google Site Search can be used to create a customised search engine […]
After a few weeks of experimenting on and off I’ve just managed to get the Imagick extension installed under Apache on Windows (my development environment). While discovering how to make it work was not at all simple the final process of getting all the pieces to play together nicely was pretty easy. In this post […]
Have you ever tried to create a professional quality document programmatically from within PHP? It’s a real pain and surprisingly tricky to do. There are limited options for PHP developers to produce files in the formats most often used in business. There are libraries for producing PDF files in PHP but they are complex and […]
I haven’t written anything here for ages due to illness, work and life getting in the way. I’ve got a longer post brewing that I’ll hopefully add in the next couple of days but for now here’s a quick tip that I hope someone will find useful. I recently had a situation where I wanted […]
How to create a secure persistent login mechanism in PHP, looking at some of the issues and pitfalls surrounding this.
This post looks at an issue with handling binary data from a database using PDO and a partial workaround for the problem.
This post discusses a how I implemented a solution for a client which shows which of the client’s stores a user visiting a website is geographically close to.