Joke Collection Website - Blessing messages - How does php ci framework connect SMS interface?

How does php ci framework connect SMS interface?

Quite simply, this interface call is a function (sendSMS) that encapsulates the curl request, and this function has been provided on the code sample website. When using, load the function and then call the method sendSMS.

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