18 Aug 2010, 3:07 p.m.

Musical Interlude: Joe Bonamassa Plays "Just Got Paid" at the Albert Hall

I haven't blogged much at all for a while, so it's probably time to remind my dozen or so readers that I'm still around. My excuse is that I've actually been working on a number of other projects, almost all of which will be covered here in due course, so do stay tuned.

In the meantime, here's a musical interlude, and it's perhaps the greatest thing I've seen on the 'net in some time: Joe Bonamassa covering ZZ Top's "Just Got Paid" live at the Albert Hall back in 2009. I don't really know where to begin in explaining how awesome this is, but I'll draw your attention to the twin drum battery, the one-man synchronized Theremin/Flying V duel, and Joe's incredible tone, playing and pure showmanship - which is all the more endearing if you happen to know what a humble, down-to-earth guy Joe actually is.

Read more »
Posted by Simon in Links and Videos | 0 comments
13 May 2010, 10:23 p.m.

Successful Microsoft SQL Server Support for PHP on Linux

I recently had a requirement to enable a PHP application on Linux servers to connect to a remote Microsoft SQL Server database. Despite initial concerns that this was impossible or at least very difficult, compounded by numerous confused forum/blog posts suggesting it to be so, it turns out to be eminently achievable.

Unfortunately, there seems to be a lot of misinformation out there, so at the risk of adding to it, here's my writeup of getting PHP on Linux to talk to an MS SQL Server database, using both the mssql_* functions and the Zend_Db component of Zend Framework.

Read more »
Posted by Simon in PHP, Zend Framework and Databases | 19 comments
12 Feb 2010, 7:01 p.m.

Adding Reverse DNS Support to Webalizer

I recently had to reinstall Webalizer from source, after some conflicts necessitated removing the existing Yum-installed version. I ran into some problems in that the new installation of Webalizer wasn't performing reverse DNS lookups on visitor IP addresses - something it's usually happy to do. Searching the web was strangely fruitless, even though it seems to be a reasonably common issue, so here's a quick writeup of the problem and what I did to fix it.

Read more »
Posted by Simon in | 2 comments
3 Feb 2010, 12:45 p.m.

Recovering a Deleted File from Subversion

This comes up every so often, and I always have to look up how to do it. So for future reference here's a quick howto on finding and recovering a previously deleted file from a Subversion repository. This assumes that you know roughly the name of the file, and roughly where it was in Subversion.

Read more »
Posted by Simon in Version Control | 2 comments
27 Jan 2010, 7:58 p.m.

Command-Line Subversion Tutorial, Part 4

This is the fourth and final part in my series of posts covering command-line Subversion. In Part 3 I promised to return and talk a little bit about using version control sensibly and appropriately, so this is me finally getting around to it.

A lot of these points aren't specific to command-line Subversion, or even Subversion in general, but are based on a good few years of working with version control, and may just make your life a little bit easier all the same.

Read more »
Posted by Simon in Version Control | 1 comment
19 Jan 2010, 2:11 p.m.

Making Phone Calls and Sending SMS with HTML

Okay, so you can't really make phone calls and send SMS messages using only HTML; that would be silly. However, if you are developing web sites and web applications for mobile handsets, you can take advantage of some features in XHTML Mobile Profile which make it easy for a user to call a number without typing that number in. You can also use the same mechanism to trigger - on the user's handset - an SMS or MMS dialog with the intended recipient's number and the message content prepopulated.

That this can all be done by creating a specially-formatted HTML link on a web page is one of the most convenient, if occasionally misunderstood features of XHTML-MP. This post will tell you everything you need to know in order to take advantage of this feature.

Read more »
Posted by Simon in PHP and Mobile | 11 comments
13 Jan 2010, 6:21 p.m.

HTTP in PHP, Part 1: The Request

When I wrote about HTTP for php|architect magazine, one of the topics that I ended up having to skim over for wordcount reasons was that of how to work with HTTP from within PHP.

So here's a quick overview of how to make and manipulate HTTP requests using PHP. I'll hopefully follow this up in due course with a counterpart post dealing with HTTP responses.

Read more »
Posted by Simon in PHP and Zend Framework | 1 comment
4 Jan 2010, 11:53 p.m.

The Year Ahead in PHP

It's that time of year when thoughts, and indeed blog posts, inevitably turn to pondering the twelve months that have gone before. For my part, I thought it might be nicer to have a look forward into 2010 and think about some of the challenges and developments I might expect to come up against in my PHP work over the course of the year.

Read more »
Posted by Simon in PHP | 1 comment
28 Dec 2009, 7:40 p.m.

Mobile-Friendly Short URLs with Wag.gd

A few weeks ago I quietly launched Wag.gd, which is what I like to think of as a mobile-friendly URL shortening service. It's "mobile-friendly" in the sense that the URLs which it generates are designed to be exceptionally convenient to type on a standard mobile handset keypad. It's time to introduce the service to the wider world, and look in a bit more depth at what I've tried to achieve with the site and how I've gone about it.

Read more »
Posted by Simon in Mobile | 2 comments
2 Nov 2009, 10:35 p.m.

"HTTP For Developers" Published

The cover of php|architect's October 09 issue

If it's November already, that must mean that the October issue of php|architect magazine is out today, and with it comes the publication of another article by yours truly.

It's called "HTTP For Developers", which I hope should be fairly self-explanatory. I wanted to write about HTTP, because while it's really very important indeed, it tends not to be particularly well understood by developers.

So the article is kind of a whirlwind tour of how HTTP, and by extension the web itself, works, with what I hope is a particular focus on how this is relevant to developers. Hence the title.

There's plenty of other good stuff in this issue too, of course, including a couple of articles on image manipulation using PHP, and something I was particularly interested in: Brian DeShong's experiences using the original WURFL API for PHP to tailor content to mobile handsets.

Read more »
Posted by Simon in PHP and Writings | 1 comment