20,359
社区成员
发帖
与我相关
我的任务
分享
/*
发送短信
http://sms.webchinese.cn/api.shtml
*/
function sendSMS($phone,$msg){
header("Content-Type:text/plain;charset=utf-8");
import("ORG.Net.Http");
$url = "http://utf8.sms.webchinese.cn/?Uid=".C('SMS_USER')."&Key=".C('SMS_KEY')."&smsMob=$phone"."&smsText=".urlencode($msg);
$result = http::fsockopen_download($url);
return $result>0;
}