做php短信接口,为什么手机收不到信息,ajax返回值为1
$mobile=$_POST['tel'];$_SESSION['zc_phone']=$_POST['tel'];$_SESSION['sj_yzm']=rand(10...
$mobile=$_POST['tel'];
$_SESSION['zc_phone']=$_POST['tel'];
$_SESSION['sj_yzm']= rand(100000, 999999);
$content= urlencode("体验RHC无线WIFI网络,您的验证码是".$_SESSION['sj_yzm'].",请畅游无线网络,谢谢!【润汇诚】");
$pwd= md5("gf_chn".md5("runhc"));
$url = "http://wf.runhc.com/sms/sendSMS2.jspx?username=sada&password=".$pwd."&mobile=13145985931&content=".$content;
$ch = file_get_contents($url);
echo $ch;
这样写对吗 展开
$_SESSION['zc_phone']=$_POST['tel'];
$_SESSION['sj_yzm']= rand(100000, 999999);
$content= urlencode("体验RHC无线WIFI网络,您的验证码是".$_SESSION['sj_yzm'].",请畅游无线网络,谢谢!【润汇诚】");
$pwd= md5("gf_chn".md5("runhc"));
$url = "http://wf.runhc.com/sms/sendSMS2.jspx?username=sada&password=".$pwd."&mobile=13145985931&content=".$content;
$ch = file_get_contents($url);
echo $ch;
这样写对吗 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询