Coding

Adding Query Parameters with ZF2 URL Helper

June 12, 2014 by

In a view script in Zend Framework 2, one may need to generate an URL for a given route that includes one or more query parameters. For instance, when browsing through a paginated data set, one may want a form’s action attribute to point to the current page, such that the user will end on… read more

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

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.