You can use two different methods to connect Diafaan SMS server with a PHP web server, a common MySQL database to exchange the SMS messages or the HTTP API in the Web Connector.
If your application has to support large amount of messages, a common (MySQL) database is the best option, but only if you have a very fast and reliable connection to the MySQL database from Diafaan SMS Server. It works best if Diafaan SMS Server runs on the same LAN network as the MySQL database and the PHP web server. When you are using this setup, the PHP script can send an SMS message just by creating a new record in the MessageOut table of the database. The PHP script can get also get the send log and the received SMS messages from the MessageLog and MessageIn database tables.
Another way to use Diafaan SMS Server with a PHP script is using the HTTP API that is implemented in the Web Connector. With the HTTP API, the PHP script can send an SMS message and query the send result with a normal HTTP GET or POST request. Received SMS message can be sent by the Web Connector to your PHP script when they come in. You can find more information about the HTTP API in the online manual.
Hello all right, I need help because I'm using the diafaan server and responses arrive in diafaan but not enough in PHP scrip, I'm connecting to my mysql database via IP Fixed want to know what you want and I have to do or what line of code should I use so that messages arrive in my PHP scrip can anyone help me?
Most Users Ever Online: 494
Currently Online: Henk Helmantel
Currently Browsing this Page:
Guest Posters: 481
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 876