Warning: file_get_contents(url): failed to open stream: No error in

WBOY
Release: 2016-06-23 13:38:12
Original
5338 people have browsed it

 Warning: file_get_contents(www.baidu.com/s?q1=&q2=able+able&q3=&q4=&rn=50&lm=0&ct=0&ft=&q5=&q6=&tn=baiduadv): failed to open stream: No error in 
问题描述:file_get_contents('www.baidu.com/s?q1=&q2='.$fw.'+'.$sw.'&q3=&q4=&rn=50&lm=0&ct=0&ft=&q5=&q6=&tn=baiduadv')会自动转义为上面的内容?导致出错??怎样解决??


回复讨论(解决方案)

curl curl

file_get_contents('http://www.baidu.com/s?q1=&q2='.$fw.'+'.$sw.'&q3=&q4=&rn=50&lm=0&ct=0&ft=&q5=&q6=&tn=baiduadv')

curl 也没有得出结果的

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!