Random Access Memory

One of the reasons I blog is to share info with others. The other reason I blog is to make permanent notes for myself. This is my online repository of the things I don’t have space to remember.

Guide to everyday Git commands

Setting up PHPCS for WordPress Coding Standards

Words I can never remember to spell correctly

unnecessary

necessarily

definitely

decision

exercise

Check Apache for startup errors

systemctl status apache2.service

Latest Posts


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