This is the problem with the php text message interface. I found a ordering system on the internet and wanted to use it for my own use. However, I cannot use the text message function above. I asked the official customer service staff, he said that the source code of the website is open and not encrypted. it only does not provide text message recharge services for free users. The text message component is available. My goal is to buy an SMS interface by myself, and then implement the text message registration on the website and the php text message interface for text messaging.
This is the problem. I found a ordering system on the internet and wanted to use it for my own use. However, I cannot use the text message function. I asked the official customer service, he said that the source code of the website is open and not encrypted. it only does not provide text message recharge services for free users. The text message component is available.
My goal is to buy an SMS interface, and then implement functions such as text message registration on the website, text message sending and ordering information, text message reply, and text message retrieval password.
How can I implement this ???
I have asked many questions, but few people answered questions... PHP text message sharing:
------ Solution --------------------
Generally, text message service providers have interfaces and test code and documentation, but you cannot buy them, after purchasing their text message, they will give you an account and password, that is, the authentication required for the interface.
It also tells you that text messages such as yours cannot make much money. because the amount of text messages is small, the unit price of text messages must be 8 cents per message, and there is a limit on the number of words.
------ Solution --------------------
If such a website does not have a good idea or idea, it will not be able to sign any money.
------ Solution --------------------
I can solve your problem, not just embed the SMS interface! Q me: 6655002
------ Solution --------------------
// SMS sending function
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 the order short message to the member's mobile phone
$ Uid = $ response _smsuid;
$ Key = $ your _smskey;
$ Hl_phone = $ phone;
$ Hl_content = "Hello ". $ username. ", you submitted the order number :". $ DingDan_NUM. ",". $ PeiSong. ",". $ zsce. ", total amount ". $ Yingfu_Total_Price. "delivered ";
$ Res = sendSMS ($ uid, $ key, $ hl_phone, $ hl_content );
------ Solution --------------------
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.