Some time ago I was looking for resources for 'How can we build an app with FrontlineSMS external command?'. I learned it from many different websites and Frontline team also helped me a lot. Now I want to share my learning with you!
I assume you are familiar with PHP and also have a local server ( because remote host would show slow response while testing the app. once you have made it then you may change to remote server to implement it to you website :-) ). The local server I use is XAMPP by apachefriends.org. it's open source and (if you haven't already) you can download and install on your computer easily, just check "Install Apache as service" during installation.After installation is complete point your browser to http://localhost to confirm installation of server, If it shows language selection screen with XAMPP logo, voila !! you've installed Apache as your server.
Now when you've installed we are ready to start the "Amazing SMS App" :-)
Go to C:\xampp\htdocs and create a new folder named "SMS" (or whatever you like I would use it for ease) it would be accessible by browser at http://localhost/sms create a file index.php in sms folder , Now rest of the work we'll perform through editing this file and command setting of FrontlineSMS.
Start frontlinesms and create a keyword 'APP'. (I've come to know that keywords are case sensitive so be sure while creating and using them any where because for instance, using APP and App would show totally different results.)
Now for keyword 'APP' go to External Command -> HTTP response.
and enter the following Command:
and check The "Auto reply" box.
Now what would this command do? Well ,It will be forwording all the SMSs with keyword APP to our index.php file with sender number and sender's message and we'll leave the rest for PHP and MySQL to handle. :-)
ohh guys I didn't realize that how time ran during talking to you. It's time for dinner and my Mom is calling me before she comes with a stick :-( in hand, Please let me go. :-)
As everybody is always a learner, So am I. Please correct me where I'm wrong and do post comments.
See you tomorrow with next part of our Amazing app tutorial. Bye.