Friday 18 April 2008

kotn i5

It's been a busy time of late. It's taken a lot of work but knitonthenet issue 5 has finally gone live. There's been a lot of late nights and long sessions this past week. Getting the magazine's content (all the patterns, features, photos, links, adverts etc.) ready for upload takes an incredible amount of time, but on top of that I've made some tweaks to some of the back-end php code that sits behind the site and controls how things work. In particular, I was getting some strange happenings with some links that wouldn't go to the correct URLs. I think the lack of sleep was beginning to take its toll on me as I couldn't find what was breaking things. But it's amazing that after just a few hours of sleep, how things can suddenly become clear. Well, not just clear but actually jump out and slap you in the face. All that was missing was a simple call to the very useful urlencode() function, and everything was working how it should be. But it's baffling that even though the site, and that particular bit of code, has been up and running for well over a year on the live site and about two years in the test suite that the problem has only just surfaced when one particular URL contained certain characters.

I've still got some things I want to add to the code that handles the dynamic, page sidebar, advert creation, but that will follow.