Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: 00 36 52 532 731
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

Send VCard from website Contents | SearchHTTP SMS API

Home > Product Manual > Developers Guide > PHP SMS API > PHP and HTTP

SMS Gateway SMS Gateway Home

PHP Developers!

Start by checking out the possible solutions on how to add SMS functionality to your website. Read the quick overview:

php sms example Beginners: How to send/receive SMS with PHP...


Send SMS using HTTP:

With PHP you can easily submit SMS messages using HTTP requests:

Send SMS (PHP + HTML form)
Send SMS (URL examples)


The Ozeki NG SMS Gateway can send incoming messages to your PHP website through HTTP GET and POST requests:

Receive SMS using PHP and HTTP


SMS from MySQL:

If your website has a MySQL database, check out the following information:

Send SMS from MySQL


 


Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

Send SMS from PHP using HTTP

Ozeki NG SMS Gateway has a built in HTTP Client and a built in HTTP Server. This makes it possible to send and receive SMS messages using HTTP requests. In this chapter you can read about the possible configurations you can setup if you want to send and/or receive SMS messages using HTTP from a web based application, such as a PHP script.

Configuration #1 - Receive only

In this configuration we use the system for receiving only. If an SMS comes in it is forwarded to a PHP script in an HTTP request. To setup this configuration, you need to install the HTTP Client user in Ozeki NG SMS Gateway. The next step is to configure the URL of "PHP Script #1" in the "HTTP URL to be called if an SMS message arrives:" field of the "Incoming tab" of the Http Client user configuration form. "PHP Script #1" should return an empty response.



Configuration #2 - Receive SMS and send a response immediately

In this configuration we use the system for receiving an SMS message and for sending a response SMS immediately after the message has been received. In this configuration you cannot send a message without receiving one first. To setup this configuration you need to install the HTTP Client user in Ozeki NG SMS Gateway. The next step is to configure the URL of "PHP Script #2" in the "HTTP URL to be called if an SMS message arrives:" field of the "Incoming tab" of the Http Client user configuration form. The "PHP Script #2" should return an HTTP response formatted according to the SMS response format specification. The content of the HTTP response will be sent as an SMS message, to the specified recipient. More information about this configuration can be found in the "Receive SMS on website" guide.



Configuration #3 - Send an SMS message using HTTP polling

This configuration shows, how the software can be used to send messages asynchronously. Asynchronous sending means, that the PHP script can send a message when the outgoing message become available in the back end system. In this configuration the PHP script does not have to wait for an incoming message. Ozeki NG SMS Gateway will periodically download the output of the PHP script, and if the PHP script returns a response, it will be sent as an SMS message. Note that in case the mobile phone does not send an SMS message, yet the HTTP request is initiated by the Ozeki NG SMS Gateway system.

To configure this solution you need to install the HTTP Client user. On the HTTP Client user configuration form, you need to enable the "Download outgoing messages from the following URL: " checkbox, and you must put the URL of "PHP script #3" into the "Download outgoing messages from URL:" field in the "Outgoing" tab of the Http client user's configuration form. The PHP script should format the output according to the SMS response format specification.



Configuration #4 - Send an SMS message using client originated request

Configuration #4 is different from the previous ones, because it does not use the HTTP Client user. It uses the built in webserver of Ozeki NG SMS Gateway. To use the built in webserver, you need to setup an HTTP Server user! The HTTP server user can access the HTTP API of the built in webserver. The HTTP API is explained in detail on the following URL: HTTP SMS API specification. The use of this API is also explained in the "Send SMS from a website (PHP)" and the "How to send a VCard SMS to a cellphone from a PHP website" document.







Next page: HTTP SMS API

Copyright © 2000 - 2017 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com