Send SMS using Direct IO extension.
Install PHP Direct IO Module
sudo apt-get install php5-dev php-pear
sudo pecl install channel://pecl.php.net/dio-0.0.7
Based on http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/