Sample Code Send SMS with HTTP API in Php
I will walk you through a quick and interesting way to send SMS using a simple php Code. I wanted to make it as easy as possible for you, so I have created the web version in order to demonstrate the instructions that I will explain in this article. So, just follow these easy steps as I walk you through the whole process and in no time, sending SMS will be a best php Code.

How to Send SMS using HTTP API in Php Code?
<?php $xml_data ='<?xml version="1.0"?> <parent> <child> <user>UR_USER</user> <key>UR_KEY</key> <mobile>9974984500</mobile> <message>Test Message 1</message> <accusage>2</accusage> <senderid>alertp</senderid> </child> <child> <user>UR_USER</user> <key>UR_KEY</key> <mobile>9974984500</mobile> <message>Test Message 2</message> <accusage>2</accusage> <senderid>alertp</senderid> </child> </parent>'; $URL = "http://temp.91bulksms.com/submitsms.jsp?"; $ch = curl_init($URL); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml')); curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); print_r($output);
?>