<BR><?php <BR>header(“Content-Type:text/html;charset=utf-8″); <BR>if (isset($_GET['number'])) { <BR>$url = ‘http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx/getMobileCodeInfo'; <BR>$number = $_GET['number']; <BR>$ch = curl_init(); <BR>curl_setopt($ch, CURLOPT_URL, $url); <BR>curl_setopt($ch, CURLOPT_POST, true); <BR>curl_setopt($ch, CURLOPT_POSTFIELDS, “mobileCode={$number}&userId=”); <BR>curl_setop<em>8本文来源gao.dai.ma.com搞@代*码(网$</em><pre>搞代gaodaima码
t($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$data = simplexml_load_string($data);
if (strpos($data, ‘http://’)) {
echo ‘手机号码格式错误!’;
} else {
echo $data;
}
}
?>
手机号码: