Articles

A collection of articles and snippets I've collected over the years.


May 30, 2012

Here's how to send html email via remote SMTP using PHP and Pear Mail / Mime. To install the classes you should enter (as a superuser): The following code shows how to send an HTML mail using...

May 10, 2012

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It can help speed up your Magento installations. First, install the PHP APC package (Assuming you are using Ubuntu as your web...

March 29, 2012

If you need to test more than one URL then you will need to tell Siege to use a file to load the URLs from. Simply create a text file called urls.txt and add each URL you want to test on a separate...

March 28, 2012

As a website owner your website performance is crucial to your business. You would expect your website to be able to cope with thousands of visits per minute but unless you've prepared for it by...

February 4, 2012

WordPress is a great way to get a website up and running quickly and the sheer number of plugins and themes means that you can do a lot with it. The downside to this is that both Worpress core and...

November 4, 2011

My OS of choice is Ubuntu and there are a few "Must Have" utilities on Ubuntu I usually install straight away. Here's a list of the ones I use the most. From left to right these are:...

October 13, 2011

Today I came across a need to test SMTP outgoing emails from the web application I was working on. I was working on a simple forgotten password form that sent a password reset url to the registered...

October 11, 2011

APC is a great tool for caching in PHP and once installed it is very easy to use. However, what do you do about viewing the PHP APC cache in Ubuntu? Well, there is a fantastic PHP page provided by...

October 5, 2011

Here's the list of features I need from an IM Client.

August 12, 2011

I made some changes to my ~/.vimrc file that didn't seem to work and so I needed to see what was happening when vim loaded my ~/.vimrc file.

July 26, 2011

I just came across something that made me wonder wether a PHP object uses the magic __get() and __set() methods inside the object itself.  I wrote the following code to test: Here's the output:...

June 14, 2011

Knowing a programming language just isn't enough these days to be a full time Web Developer. Here are ten other skills required to 'do the job'.

May 18, 2011

If you host a WordPress site and have enabled writeable permissions on any of the folders it is recommended that you Disable php processing in wordpress upload folders. If you are running Apache you...

May 12, 2011

Windows developers using Subversion generally use TortoiseSVN to administer their repositories and when moving to Ubuntu Linux they find using the CLI (Command Line, Terminal, black box - whatever...

May 12, 2011

I have a need in a bash shell to get the public ipaddress of a domain name.  Here's how to achieve it: Cool huh?

May 12, 2011

I was recently caught out by a crontab running even after I had edited the crontab and commented out the line. I used VIM and edited the file followed by a <code>:w</code> command but the cron was...