PHP SMS Interface
The problem is that, before I found a reservation system on the Internet, I want to take their own use, but the above text messaging function I can not use, I asked the official customer service, he said the source of the site is open, no encryption, just for free users do not provide SMS recharge services, SMS components are there.
My goal is to buy a text message interface, and then realize the website above the text message registration, SMS send ordering information, SMS reply, SMS retrieve password and other functions.
How can this be achieved???
Ask a lot of questions, the answer is very few people ah ... PHP SMS
Share to:
------Solution--------------------
General SMS is the interface, there are test code and documentation of things, but you do not buy their text messages, the interface is certainly not used, buy their text messages they will give you an account and password, that is, the interface must be used certification bar.
In addition to tell you, such as your application type of text messages can not make you what money, because the amount of small, text message unit Price is definitely in 8 cents/bar, and the text message is a word limit.
------Solution--------------------
Such a website, if there is no good ideas or ideas, can not sign any money.
------Solution--------------------
Your problem, I can solve, not just embedded mobile phone SMS Interface! Q Me: 6655002
------Solution--------------------
Send SMS function for mobile phone
function Sendsms ($uid, $key, $hl _phone, $hl _content) {
$url = ' http://utf8.sms.webchinese.cn/?Uid= '. $uid. ' &key= '. $key. ' &smsmob= '. $hl _phone. ' &smstext= '. $hl _content;
if (function_exists (' file_get_contents ')) {
$file _contents = file_get_contents ($url);
}else
{
$ch = Curl_init ();
$timeout = 5;
curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, Curlopt_returntransfer, 1);
curl_setopt ($ch, Curlopt_connecttimeout, $timeout);
$file _contents = curl_exec ($ch);
Curl_close ($ch);
}
return $file _contents;
}
Send order SMS to member mobile
$uid = $cfg _smsuid;
$key = $cfg _smskey;
$hl _phone= $phone;
$hl _content= "Hello". $username. ", you submit the order number:". $DingDan _num. ",". $PeiSong. ",". $ZhiFu. ", total amount. $Yingfu _total_price." has been delivered ";
$res = Sendsms ($uid, $key, $hl _phone, $hl _content);
------Solution--------------------