PHP SMS Interface Solution

Source: Internet
Author: User
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--------------------
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.