Guest Posts

I am not accepting any guest posts on this site. This is my personal blog, and therefore I write all its content.

Please don’t contact me to offer to write a guest post. I will ignore your request, and mark your email as spam.

I will also not be accepting requests to add links to your content, unless it matches the content of my post 100%, it’s on your personal blog, and it helps others first.

Latest Posts


  • Create an array containing the days of the week

    You could simply code: but thats the “noob” way, a real coder creates a function… Update: 13/05/2018 Sigh What was wrong with me back then, this would have been so much better. Keep it simple, stupid!

  • 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 […]

  • MySQL: filtering results from a list of id's

    A short while ago I posted about testing if a variable exists in a list and I spoke about the MySQL “IN” keyword. I realised this week that not everyone knows about the MySQL “IN” keyword, so I’ve decided to explain this very handy SQL keyword. Lets say you have a user table with the […]

  • Life of a developer

    It has been a while since I have posted here, mainly due to the time consuming period that is the festive season and also because I am discovering that I am getting fairly annoyed by Drupal as a blog tool and am trying out the new WordPress as an alternative. For now I have a […]

  • 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 […]

  • Simple PHP increment function

    Whenever I have to output a numbered list of data I usually run the following code to achieve the required result. but I have discovered a lovely little function that does all this for me. now I simply call and it automatically outputs the next numeric. Great! Simple and easy to use…..that’s the way to […]

  • My first published article.

    Something of a first for me. I recently started playing around with the CakePHP framework again. I have had some (little) experience with it in the past and with the launch of two CakePHP books I decided it was high time I learned how to use this awesome framework properly. A few days later I […]