PHP Function with Optional Parameters

Managing Cron Jobs with PHP – Tuts+ Code Tutorial

origianl source :

You will need to install the following packages

 sudo apt-get install php5-gd php5-imap php-pear php5-dev make php5-mcrypt

Now you can install mailparse

 sudo pecl install mailparse

Next edit your php.ini file and add

 sudo nano /etc/php5/apache2/conf.d/mailparse.ini


 sudo nano /etc/php5/conf.d/mailparse.ini

This will create a new file. Add the line