News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Implement Two-Way SMS with PHP
July 17, 2012 @ 08:46:22

PHPMaster.com has an interesting new article posted today showing how you can use PHP to create a two-way messaging (SMS) application that can both send and initiate actions based on message content.

SMS is used for various purposes these days. For example, major websites like Gmail and Facebook use SMS to improve their authentication process with multi-factor authentication and notifying users about the updates. These are one-way SMS applications since messages are sent only from these sites to the user. Two-way SMS applications are more complex than one-way ones. In two-way SMS apps, a user can initiate a conversation by sending messages, and then the application responds according to the user's commands.

They base the application on the Clickatell SMS service (not free, but cheap - pay by the message too) which includes the ability to hook into your API on a specific endpoint and relay the message data. The message can either be sent via a POST or GET and can easily be interpreted in your app extracting things like a timestamp, the number it came from and, of course, the actual text of the message. There's also a section about the "User Data Header" functionality that lets you easily split up a message for recombination on the remote device. Code is included for all examples.

0 comments voice your opinion now!
sms tutorial bidirectional send receive


blog comments powered by Disqus

Similar Posts

BinaryTides.com: Install Nginx + Php FPM + APC on CentOS 6.4

PHPBuilder.com: Installing Apache and PHP under Win32

Rob Allen's Blog: Tutorial Notes - Zend_Auth in French & Using Oracle

Andrew Johnstone's Blog: Lock Files in PHP & Bash

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 5)


Community Events





Don't see your event here?
Let us know!


bugfix community list api opinion tips framework library symfony interview package install introduction release deployment series language podcast voicesoftheelephpant laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework