Stop waiting, start array dereferencing in PHP now!

Ever since I started programming object oriented PHP I’ve been using function chaining and function dereferencing. But there is another thing I’d like to be able to do that was added to the PHP trunk over 8 months ago that still hasn’t made it to the current release. The function I’m referring to is array dereferencing. Because I got tired of waiting for this to be included in PHP 5.4 or 6 I decided to write a little code snippit for this exact purpose.

Ever since I started programming object oriented PHP I’ve been using function chaining and function dereferencing. But there is another thing I’d like to be able to do that was added to the PHP trunk over 8 months ago that still hasn’t made it to the current release. The function I’m referring to is array dereferencing. Continue reading “Stop waiting, start array dereferencing in PHP now!”

Adding SSL support to Magento

This week I was asked by a peer to add SSL support to a Magento installation. Since this is something trivial but also something I think people should really take a look at I decided to share with you how you can achieve this.

This week I was asked by a peer to add SSL support to a Magento installation. Since this is something trivial but also something I think people should really take a look at I decided to share with you how you can achieve this. Continue reading “Adding SSL support to Magento”

How to easily detect mobile devices

In this article I show how you can easily detect mobile devices using your website or web applications by implementing the Tera-WURFL service. This service uses the visitor’s User Agent string to determine the device being used and it’s capabilities.

Nowadays people want to offer mobile versions of their websites or web applications to their mobile users. Even though some mobile vendors explicitly state it is not necessary to develop a trimmed down version because they want their users “to experience the real internet”. But in most cases you don’t want your mobile visitors to stop from returning because they went through their data plan to quickly because of all the extra “bulk” on your site. They just want your content. Continue reading “How to easily detect mobile devices”

Choosing a license for your next project

Not so long ago I started working on a new project which I wanted to release under an open source license. But when I went over to the Open Source Initiative I was amazed by the dozens of licences they have for software. Nevertheless I decided to dive into the matter and came up with some guidelines.

Not so long ago I started working on a new project which I wanted to release under an open source license. But when I went over to the Open Source Initiative I was amazed by the dozens of licences they have for software. Nevertheless I decided to dive into the matter and came up with some guidelines. Continue reading “Choosing a license for your next project”

WordPress plugin: LDB External Links

Now available for download : LDB External Links. After my post on how to clean up the target=’_blank’ in a WordPress post I decided to turn my code into a WordPress plugin.

After my post on how to clean up the target=”_blank” in a WordPress post I decided to turn my code into a WordPress plugin.

WordPress is my CMS of choice but I also love XHTML 1.1 which means that the default way WordPress handles for opening links in a new window doesn’t validate. That’s why I wrote this plugin. Continue reading “WordPress plugin: LDB External Links”