With any PHP application, fatal errors will occur. Instead of presenting the user a white screen of death, it’s possible to programmatically execute a function just before a PHP completely shutsdown using the PHP function register_shutdown_function. Read more
In PHP there are two options that control what errors are reported and whether these errors are shown to the user. Error reporting sets the error reporting level with an assigned integer, typically via a constant. By default, PHP reports everything except E_NOTICE and E_STRICT prior to PHP 5.4. Read more
In this basic tutorial, I am going to show you how to install and get started with Memcached using PHP.
Memcached is used to improve a web applications performance by storing an associative array of data in its memory. This is typically used to store database query results, therefore reducing the amount of queries to the database server. Read more
In a previous post, I created this web service in PHP (view the post here). In order to create a client in Ruby, I’ll need to install a Ruby Gem called Savon. Savon is a SOAP client library for Ruby and will allow me call the PHP based web service via Ruby code. Read more
Recently I have been experimenting with Nginx and CouchDB. After managing to get them installed on my Ubuntu virtual machine, I wanted to checkout one of my Symfony2 projects and put Nginx to the test. Read more
In this tutorial I am going to show you how to set up a basic helper class using the Symfony2 PHP framework. By default, Symfony2 doesn’t have a Helper directory in the bundle structure; however, this doesn’t stop us from making one by using Symfony’s built in service container.