South African HTML image map

I recently had to create an image map of South Africa, displaying each of the provinces with links to content for each province. As it took me most of the day to complete I thought it might be handy for someone else too. So in true open source fashion here it is for you to… Continue reading South African HTML image map

Riding on Rails

I’ve decided to spend less of my free time on blogging and more on learning new things. I had planned to change this site to run on WordPress, but have decided instead to learn Ruby on Rails. From what I can see it is (in many ways) similar to CakePHP (which I love) but with… Continue reading Riding on Rails

Developing with CakePHP: Creating a simple admin control panel

If you are like me, you prefer to have a specific url mapped to your applications control panel/backend etc. This is usually something along the lines of www.url.com/admin or www.url.com/cms. Normally during the CakePHP “bake” process, the system will ask you what you want your admin route to be (default “admin”). Once this has been… Continue reading Developing with CakePHP: Creating a simple admin control panel

PHP.js

This is something I came across a while ago, but it has really come in handy. It is a project that attempts to make many php functions available in javascript. As most php developers will at some point have to write some javascript, it is a very handy library. You can find it over at… Continue reading PHP.js

Last day of the month

Here’s one line of code to get the last day of a month: $last_day = date(‘t’, mktime(0, 0, 1, $month_variable, 1, $year_variable)); How much more difficult do you want it to be ???

Delving deeper into the PHP lake…testing if a variable exists in a list

As a PHP developer of almost four years now, I often still come across little problems in coding that make me do the good ol Google search to find the answer. (someday I will have memorised the entire PHP manual, but today is not that day ;-). Anyway today I was asked about how to… Continue reading Delving deeper into the PHP lake…testing if a variable exists in a list