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.