On Sat, Jul 11, 2009 at 3:17 PM, Elvis Jorge<[email protected]> wrote: > Hello Jovan , > > I read the user guide but I don´t understand how to use them, please give > some example of how to use them. > > For example I just want to receive in a php scrip the informacion of the SMS > and the sender phone number, what I don´t know to do is run my scrip, a > friend told me I have to run my scrip using get-url or post url. I just need > that you give some example and that you explain me
Lets say you want to process all the messages with keyword "complex". The keyword is the first word in the message, so we'll create a service which processes all the MO messages starting with "complex" First we need to setup sms-service. group = sms-service keyword = complex get-url = "http://localhost/sms.php?sender=%p&text=%a" max-messages = 0 concatenation = true Then you write your get-url handler. In php it can be something like: <?php $sender = $_GET["sender"]; $text = $_GET["text"]; // do something useful with the message data :) ?> BR, Jovan
