这个php代码是使用ajax执行的。执行头语句后,Ajax请求不会返回。从php转到url并执行其余的代码
if(is_numeric($phone) && strlen($phone)==10){
$text = "Hi $name, your account created at hhhhh. Check your email to get updates. Thank you";
$sms = "http://domain.com/msg.php?user=******&pass=*****&sender=***&phone=$phone&text=$text&priority=****&stype=***";
header("Location: $sms");
}
$url = "done";
echo $url;
我需要的是什么,只是去$sms
网址在PHP,并呼吁通过Ajax这个代码执行时的剩余部分。是否有任何其他方法比标题去链接和执行PHP中的其余代码。
做一些关于[curl]的研究(https://www.google.com/search?q=php%20curl) – 2015-02-08 17:39:03
你为什么通过GET请求发送密码? – ntzm 2015-02-08 17:41:09
短信网关API是这样的。 – user3209025 2015-02-08 17:46:09