Joke Collection Website - Blessing messages - How to add SMS verification function to the website?

How to add SMS verification function to the website?

How to add SMS verification function to the website? Demonstration code-PHP version of $ mobile = "1360000000,1860000000"; //Multiple numbers can be separated by commas, with a maximum of 200 $ content = "test// to send the content, and it is not recommended that it be too long $ encode =" GB 2312 "; //Character encoding, optional parameters//Five parameters can be transmitted: notify or ad, adcard, adfangchan and dxztd. Notify means notification category, ad means 106 channel advertising category, adcard means card issuing channel advertising category, adfangchan means 106 real estate dedicated channel, and dxztd means lower limit. $url= " /api/sms_send? "; //interface address, go to /api/doc to get $ URL. = "user = 985985 &// user name, go to /api/doc to get the $ URL. = " Hash = ef 38 ed 03 c 660342 1 ba 24 c 520 efcb 7 & "; //Hash value of user name, go to /api/doc to get $ URL. = " encode = $ encode &$url。 = " smstype = $ smstype & amp; $url。 = "mobile phone = "urlencode($mobile). & content =. urlencode($content)。" "; $ CTX = stream _ context _ create(array(' patble; MSIE 7.0windows NT 5. 1; YNSMS API v 1.0; )" ) ) ); $r = file_get_contents($url,0,$ CTX); $rs = json_decode($r,true); If (! $rs['result']) {echo "Failure reason: error code:". $rs['errcode']。 , Chinese:'. $ RS[' msg ']; //file _ put _ contents('。 /SMS _ log.txt', "SMS sending failed: failure reason: error code". $rs['errcode']。 , Chinese:'. $rs['msg'],FILE _ APPEND); } else {echo} sent successfully! " ; I will give you an example, and you can refer to this method.