Joke Collection Website - Blessing messages - How does php ci framework connect SMS interface?
How does php ci framework connect SMS interface?
I will send you the source code. You need to apply for the account password inside.
& lt?
$ user name? =? Test'; ? //User account number
$password? =? ' 123456'; ? //password
$ cell phone? =? ' 138 1 1299934, 186 103 10066, 152 10954922'; ? //Mobile phone code
$ content? =? Your SMS verification code is ABCD ';; ? //content
//Send immediately
$ Results? =? SendSMS($ username, $ password, $ mobile phone, $ content);
Echo? $ result
Function? Send SMS ($ username, $ password, $ cell phone, $ content)
{
$url? =? '');
curl_setopt($ch,CURLOPT_POST, 1);
curl_setopt($ch,? CURLOPT_POSTFIELDS,$ post _ fields);
$data? =? curl _ exec($ ch);
curl _ close($ ch);
$res? =? explode("\r\n\r\n ",$ data);
Return? $ RES[2]; ?
}
& gt
- Previous article:How to send wechat
- Next article:Sentences that miss each other
- Related articles
- Do I still need isolation from Suzhou to Liaoyang?
- How much is the monthly rental fee for the Telecom King Card package?
- Selected Good Morning Love Messages for Your Girlfriend. Selected Good Morning Love Messages for Your Girlfriend.
- What data does Taobao store operation need to analyze, and what is the daily operation content?
- Only when you go abroad do you realize how good China is
- Pay New Year greetings to relatives.
- Beautiful sentences to welcome summer are universal.
- Is ADB on or off?
- How to set iphone alarm clock to your own music?
- Someone just called me and said that I had a mobile phone card and sent a lot of harassing text messages, which has caused it.