I've decided to collect all the external links in my shop into a database table, to make it easier to update them, and also so I can check automatically for dead links.
I suppose that I should get the headers (only) for the URL, and check the response code is (um, what is it, 102?) the code for "OK", and do something else if it isn't. It looks like the CURL library is the simplest way to do this.
I'd be grateful for any comments of the form: "Ah, but you forgot about...."
Thanks!