Category: PHP

With the release of PHP 5.5, so-called generator functions are now available. Generators can among others be used to decrease the memory usage of your web server. This article gives you an overview of the generators in PHP 5.5.

Read More Introduction to PHP Generators

PHP

Manipulating DOM documents with PHP is difficult without the use of libraries or extensions. This article discusses the various options that are available and focuses on the phpQuery project, which is a PHP port of the popular jQuery JavaScript library.

Read More Manipulating DOM Documents with phpQuery

PHP

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.

Read More Solving Concurrent Request Blocking in PHP

PHP

Using transactions in databases is often necessary and useful. If several database operations depend on each other, then it was both easier and prettier to make use of transactions. This article shows how the Zend\Db makes database transactions easy to use.

Read More Using Transactions with Zend\Db in Zend Framework 2

Zend Framework

Performing case insensitive searches for things such as attribute values can be quite a pain with XPath. There is a well known workaround available, but it is not so pretty and clean like one would hope for. PHP developers are also limited by the fact that PHP does not implement XPath 2.0. This article shows an additional approach that helps keep XPath queries simpler.

Read More Solving XPath Case Sensitivity with PHP

PHP

PHP

Do you need more control of your paginator? Luckily, it is not mandatory to have a data source adapter fetch the data to paginate on. Rather, this can be done independently of the paginator by using the Null adapter.

Read More Pagination with the Null Adapter in ZF2

Zend Framework

Creating full URLs within view scripts can come in handy in many situations, such as when sending out e-mails where one wants to link back to one’s website. Luckily, Zend Framework 2 provides two useful view helpers to accomplish this task.

Read More Create Full URLs in ZF2 Views

Zend Framework

If you are in a situation where you need a stored procedure to return several result sets and have to access these from within Zend Framework 2, then this article will probably be useful; it shows you a way of accomplishing just this, but unfortunately not without compromises.

Read More Multiple Result Sets from Stored Procedure in ZF2

Zend Framework

This article shows how to use the URL view helper in Zend Framework 2 to build URLs to child routes. It furthermore discusses a quite useful feature of the view helper in order to reuse matched route parameters when building an URL.

Read More ZF2 URL View Helper and Child Routes

Zend Framework