Home  >  Article  >  Backend Development  >  一个发送请求抓数据报的异常怎么解决

一个发送请求抓数据报的异常怎么解决

WBOY
WBOYOriginal
2016-06-13 10:33:451154browse

一个发送请求抓数据报的错误如何解决
[function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported in C:\xampp-win32-1.7.2\xampp\htdocs\ceshi\post.php on line 58



------解决方案--------------------

探讨

引用:

引用:

引用:

php.ini中设 allow_url_fopen=On

没找到这个文件,搜索都没搜出来

.......额 这是一个很神奇的文件 我们一般叫它配置文件

PHP code

phpinfo();


找到Loaded Configuration File这个就是php.ini……
Statement:
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