21,886
社区成员
发帖
与我相关
我的任务
分享
Warning: file_get_contents(http://api.ickd.cn/?com=ems&nu=523132661256633&id=**************************&type=html&encode=utf8) [function.file-get-contents]: failed to open stream: 由于系统缓冲区空间不足或列队已满,不能执行套接字上的操作。 in D:\Program Files\PHPnow-1.5.6\htdocs\start\index.php on line 38
38行的程序是这样的
$typeCom = $_POST["expressid"];//快递公司
$typeNu = $_POST["expressno"]; //快递单号
$key='67237CE8B625B4C669A58E8B0ABCAAD2';//到http://www.ickd.cn/api/reg.html申请
$url ='http://api.ickd.cn/?com='.$typeCom.'&nu='.$typeNu.'&id='.$key.'&type=html&encode=utf8';
$data = file_get_contents($url); 这就是38行。
if($data){
$tpl->assign('url',$data);
}else{
$tpl->assign('massage','<table class="ickd_return"><tr><th>时间</th><th>记录</th></tr><tr><td colspan="2">暂时无法查询该数据</td></tr></table>');
//$smarty->assign('nullmsg','暂时没有内容');
}//赋给前端显示,此处根据不同的模板引擎不同