APC vs. Memcached

In this article I compare APC and Memcached. Two caching methods I studied for a PHP MVC Framework I constructed for a client.

A while ago I was asked to develop a PHP MVC framework from scratch with hooks for caching. After building the MVC framework I decided to take a look at the two preferred caching methods, Memcached and APC, for this particular framework. Below you’ll find some reasons why you should choose the one or the other. Continue reading “APC vs. Memcached”

Adding Zend ACL to CodeIgniter

Adding the Zend ACL library to your CodeIgniter installation can be really handy plus it’s really easy to do. In this article I share with you how I accomplished this.

As you might know I’m a big fan of CodeIgniter and although the system is pretty awesome right out-of-the-box there are some elements I always add before I start developing an application in CodeIgniter. One of those is the following ACL class. I used to work with a simple and straight-forward ACL class I wrote myself but about two years ago I decided to implement Zend’s powerful ACL library in my CodeIgniter installations. I decided to share this with you in this little how-to. Continue reading “Adding Zend ACL to CodeIgniter”

Web services and backward compatibility

About a year ago I was asked by a client to update their existing web service because of some changes in the way they wanted to process their sales data. Luckily this client has always understood the importance of a Service-Oriented Architecture ( SOA ) since they deal with large amounts of resellers who need to access, edit and create data. All I had to do was apply the changes to their web service. Continue reading “Web services and backward compatibility”

Never having to use $_GET or $_POST again

Since the release of PHP 5.2 you can easily fetch and sanitize data send via superglobals in a safe manner. You can replace your current sanitation class with this API.

I completely missed this great new feature build in PHP 5.2 since I haven’t been using much vanilla PHP lately due to my preference for CodeIgniter. Continue reading “Never having to use $_GET or $_POST again”

Cleaning up the target=”_blank” in your WordPress post

Like many of you I love WordPress but it neglects to offer a good alternative for the good old target=”_blank” for opening a link in a new window or tab.

Like many of you I love WordPress and although the system itself returns some beautiful HTML it neglects to offer a good alternative for the good old target=”_blank” for opening a link in a new window or tab. Continue reading “Cleaning up the target=”_blank” in your WordPress post”