My latest article on Profiling using XHProf, a neat tool developed at Facebook. A step-by-step tutorial to install and use XHProf, and some useful hints on how to improve performances and scalability of your PHP application.
An introduction to PHP Profiling using XHProf, and some techniques on how to get the most out of your application.
Graphs in the database: how to store a graph data structure in a DBMS, and answer the most common queries typical of social networks, like "You might also know" or "You might also like", or "How you are connected to XYZ" (degrees of separation).
31 August 2009
Extract frames from a movie and create a preview as animated GIF, using PHP, SPL, Imagick and FFmpeg.
How to test HTTP calls using Zend Framework, using Dependency Injection and a stub HTTP Client.
18 May 2008
This second Translation2 tutorial shows how to add, update and remove languages and translations.
13 May 2008
This first Translation2 tutorial shows how to deal with translated strings: how to fetch them one by one or in groups, and how to transform, cache and decorate them.
6 May 2008
I just released the first stable version of Translation2. Here's an overview of the package, its purpose and its design.
Since I keep getting emails asking for help with PEAR::Pager, here's a couple of new examples about the most requested features: 1) how to use Pager with a template engine like Smarty; 2) how to use Pager_Wrapper to paginate database results and display them using AJAX.
How to navigate through the paragraphs of a long article with PEAR::Pager.