PHP头条
热点:

PHP调用快递API接口报错了,该如何解决


PHP调用快递API接口报错了
PHP code


Warning: file_get_contents(http://api.ickd.cn/?com=ems&nu=5231326611111&id=*************&type=html&encode=utf8)
 [function.file-get-contents]: failed to open stream: 由于系统缓冲区空间不足或列队已满,
不能执行套接字上的操作。 
in D:\Program Files\PHPnow-1.5.6\htdocs\029kuaidi\index.php on line 39





$typeCom = $_POST["expressid"];//快递公司
$typeNu = $_POST["expressno"]; //快递单号
$myname = $_POST['myname'];
$key='*************';//到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); 这就是39行的程序。

大家帮我看看吧。我现在很困惑,不知道什么问题。

------解决方案--------------------
服务器端出问题了,这个应该跟你没啥关系.

www.phpzy.comtrue/phprm/37664.htmlTechArticlePHP调用快递API接口报错了,该如何解决 PHP调用快递API接口报错了 PHP code Warning: file_get_contents(http://api.ickd.cn/?com=emsid=*************encode=utf8) [function.file-get-contents]: failed to open stream: 由于系统缓...

相关文章

PHP之友评论

今天推荐