What should I do if an error is reported when PHP calls the express delivery API?

Source: Internet
Author: User
PHP call Courier API interface error PHPcodeWarning: file_get_contents (http://api.ickd.cn /? Com = EMS & amp; nu = 5231326611111 & amp; id = ************** & amp; type = html & amp; encode = utf8) an error is reported when PHP calls the express delivery API interface.
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: Operations on sockets cannot be performed because the system buffer space is insufficient or the queue is full. In D: \ Program Files \ PHPnow-1.5.6 \ htdocs \ 029kuaidi \ index. php on line 39


$ TypeCom = $ _ POST ["expressid"]; // express delivery company
$ TypeNu = $ _ POST ["expressno"]; // express delivery ticket No.
$ Myname = $ _ POST ['myname'];
$ Key = '***************'; // apply at 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); this is the program with 39 rows.

Let's take a look. I am confused and don't know what the problem is.

------ Solution --------------------
The server has a problem. This should have nothing to do with you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.