When developing a Web or mobile app, you'll often encounter the need to send SMS to the user, either because of login reasons, or to send a message. The following PHP code implements the ability to send SMS.
In order to send SMS in any language, an SMS gateway is required. M
PHP Implementation of the IMEI limit SMS authentication code send class
Pay other users to implement the SMS Authentication Code codes
? /*--------------------------------function: China SMS Web PHP HTTP interface to send
Google Voice does not provide an official API interface, but it can actually be done by means of HTTP and XML requests. Most of the APIs currently available on the Web are ultimately traced to Chad Smith's theme post.
To send SMS through Google Voice, first login to Google Voice account, and then take out the page "_rnr_se" parameters, and finally this parameter and the other cell phone number, SMS content
Foreign 500M capacity free PHP space application/can bind M
Freewebhostingarea free php space, 500M storage space, a single file limit of 10M, unlimited upload file types, daily 5G traffic restrictions, FTP, web upload management files, support PHP5, MySQL5, SSI, can be customized 404, 403 error, provide
1, support Mass
2, Chinese into pinyin send
If you need to bulk multi-account with a comma (,) delimited (86159..,86159.), the message content does not support Chinese, when you enter Chinese language, the system will automatically convert to pinyin (in order to distinguish between pinyin, pinyin initials), to ensure that the message can be sent normally (input "I am whirlwind" SMS content as "Wo Shi Xuan Feng ").
Copy CodeThe code is as follows:
/*
The code looks like this: $str _tmp = dadmin_utils::gbkstrsplit ("SMS Content", 700);//content that is too long returns an array of intercepted content 700 refers to the length of the Intercept $ Total = count ($str _tmp); $num = 1; foreach ($str _tmp as $str) { nbsp if ($total > 1) { $STR = $str. "{$num}/{$total}"; $num ++; } $sign = Strtoupper (MD5 ($ke Y. $pMobile. $str. $ip)); $url = "SMS
", "" "+" account Expired "," 43 "= > "IP Address Restrictions", "+" and "content contains sensitive words" ); $smsapi= "http://api.smsbao.com/"; $username= ' kill lui gung dog '; $user= "Test";//SMS Platform Account $pass=MD5("test888");//SMS Platform Password $str= "Super Play Machine" How are you? You are a respected user. "$v[' name ']. "?? Your verification code is: ".$v[' Code '];
How to use the php SMS interface for the development of php SMS interfaces, the company gave the interface, but the document only contains java, c ++ and other demos, but does not have phpdemo, how is it good ------ solution ----------------------.. You want to copy the demo ~~~.. In fact, let's take a look at the java
This article shares a PHP SMS interface code, very simple, for beginners to refer to friends, if the site useful to the text messaging interface function, this example can be used for reference.PHP SMS Interface file:
$uid,//user account ' pwd ' =>strtolower (MD5 ($PWD)),//md5-bit 32 password ' mobile ' + $mobile,//number ' content ' = + $content,// Content
PHP Interface Request ClassHeader ("content-type:text/html; Charset=utf-8 ");/
Class Name: Chuanglansmsapi
Function: Create blue Interface Request Class
Details: Constructs the blue text message interface request, obtains the remote HTTP data
Version: 1.3
Date: 2017-04-12
Description
The following code is only for the convenience of customer testing and provide the sample code, customers can according to the needs of
SMS Authentication Code registration, very simple, with the cloud communication SMS system (charge, but there are test API to do test for us). Well, don't say much, get to the point.
1, received the Cloud Communication SMS system registration account, and then download their encapsulated good SMS API interface code, d
PHP implementation of online text messaging, the need for Third-party APIs, the following code is called the Textmagic API to achieve the function of sending SMS:
View SOURCEPRINT?01
02//introduces textmagic PHP library files
03require (' textmagic-sms-api-php/textmagicap
Now need to provide an interface to iOS, one is mobile phone SMS authentication registration, one is the mobile phone text back password. Do not know how to deal with, can someone guide you? Thank you very much, I was doing the project under the YII2 framework.
Reply content:
Now need to provide an interface to iOS, one is mobile phone SMS authentication registration, one is the mobile phone text back
Uttx.net (Austria) provides 150M free PHP space, supports PHP+MYSQL, and supports FTP management. Below please see their English introduction:
Willkommen bei uttx.net!
Uttx.net stellt dir gratis webspace mit MySQL, PHP, Ftp-zugang und 150MB Speicherplatz zur. Selbstverst?ndlich bieten wir dieses Service 100% kostenlo
PHP SMS interface is the development of the mall website, the app platform is essential, because these sites community or platform requires users to register or login. This article mainly and everyone to share the PHP SMS interface case, I hope to help everyone.
SMS Send In
1, support Mass
2, Chinese into pinyin send
If you need to bulk multi-account with a comma (,) delimited (86159..,86159.), the message content does not support Chinese, when you enter Chinese language, the system will automatically convert to pinyin (in order to distinguish between pinyin, pinyin initials), to ensure that the message can be sent normally (input "I am whirlwind" SMS content as "Wo Shi Xuan Feng ").
Copy the Code code as follows:
/
PHP Send SMS, the firewall needs to open that port
PHP send SMS, in the firewall need to open that port;
Is the server Linux?
------Solution--------------------
PHP Send SMS, how do you send, call is where the interface? We do
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.