Home > Backend Development > PHP Tutorial > PHP调用快递API接口报错了,该如何解决

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

WBOY
Release: 2016-06-13 13:15:09
Original
851 people have browsed it

PHP调用快递API接口报错了

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->

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



Copy after login


$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行的程序。

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

------解决方案--------------------
服务器端出问题了,这个应该跟你没啥关系.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template