Archive for the 'Web design' Category

Upson Downs Photography website launched!

Wednesday, April 9th, 2008

Upson Downs Photography

I’m very pleased to announce the launch of Upson Downs Photography, a project of my father’s to sell prints of his beautiful photography online. It’s fairly basic at the moment, no pricing or good descriptions of the photos are online yet, but new features will be added as we go.

In the meantime, please explore the galleries, drop in a word of encouragement or product enquiry via the contact page, and support a local photographer.

On a technical note, this is my first use of CakePHP in a production website!

Cookies not being sent back to the server

Saturday, January 26th, 2008

I’ve been playing with CakePHP, which is an MVC framework for PHP (the PHP equivalent of Ruby on Rails) and had this annoying bug where the session cookie (which holds a session hash) gets regenerated with every page request. This had the effect that, when I saved my User object in the session after validating the login, the cookie’s value would change to a new hash (losing the auth data), meaning that the logged in status was lost when requesting a new page.

I knew that the session was getting the user data inserted, because I could see the sessions and data being created on each request. I also knew that the browser was receiving the cookie with the last generated session hash. So, since CakePHP generates a new session for each request that isn’t accompanied by a session cookie, I figured that my browser wasn’t sending the session cookie with the request.

Point 1: if you can’t make your session stick, see if you’re getting a different session hash each request, because maybe the server just isn’t receiving the cookie.

Then I tried to figure out why cookies weren’t being sent. It turns out that having a space in the url of a website (which gets converted to %20, as in http://localhost/Internal%20Projects/CakeTest) stops cookies from being sent. This may have something to do with the web server (Apache 2.2.26) or the fact that I’m using a preconfigured WampServer Apache-MySQL-PHP stack, but it is common to both Firefox 2 and IE7. Which brings me to…

Point 2: don’t put spaces in your development server’s folder names when using cookies.

isalegendinalunchbox.com registered

Sunday, October 14th, 2007

I registered isalegendinalunchbox.com this morning. It’s going to be a fan club hub :-D as in paulyshore.isalegendinalunchbox.com and thetodd.isalegendinalunchbox.com. lol I kill myself.

Causeway Lake Boat Hire site update

Tuesday, July 24th, 2007

I’ve just finished off some changes to Causeway Lake Boat Hire’s website. They’ve just introducted boat licensing and training so I’ve added a new page and played with the layout a touch. This was another of my very early sites which I reimplemented in XHTML and currently host.

Aussie Tender Centre website touchup

Friday, July 6th, 2007

I’ve just finished up some changes to a site I developed about four years ago - the Aussie Tender Centre. This was the first commercial site I ever worked on, and it’s been running almost constantly, with very few issues and quite a bit of traffic. Check out the Virtual Tour link on the top menu bar - David (the manager) gives me a little plug :-D