How to use DocBlock Templates in PHPDoc

March 12, 2014 by

Sometimes one has several variables that are related – typically in a class – and one wants to document them with PHPDoc. Defining the same type and perhaps description for each of these variables or constants can be tedious and result in a lot of redundant documentation. Luckily, PHPDoc provides a way of documenting multiple… read more

Calculate Age From Date of Birth in MySQL

July 14, 2013 by

If you have ever needed to calculate the age of someone based on their date of birth, then you might have been left puzzled at first. Many people seem to over complicate things, so in this article, a simple function is provided to convert dates to ages.

HTML5 Video Element

July 10, 2013 by

Never has playing video in browsers been so easy. Due to HTML5, it can even be done in a standardized way without requiring third party software to be installed. This article gives an overview of the HTML5 video element along with its JavaScript API.

Solving Concurrent Request Blocking in PHP

June 3, 2013 by

Making multiple concurrent AJAX requests to a PHP script, for example, may have left you wondering why the requests are not executed in parallel as expected. Rather, the requests are blocking each other. Chances are that this is caused by using sessions within the PHP script.