There are two ways to forward SMS messages from Diafaan SMS Server to a PHP script. The easiest way is to use the Web Connector to forward all incoming messages to your script with an HTTP GET or POST call. The Web Connector also has an option to send the response of the PHP script back to the sender of the message.
Another way is to use the SQL Connector to store the incoming messages in a common database table of your database and use a PHP script to get and process the messages. However, to accomplish this you need to call the PHP script regularly with a cron job and therefore there will be a delay in the handling of received messages.
I want to run a PHP script to process the message (filter message content on keywords, ...) once a message has arrived.
What would be the best approach?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 460
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 821