Home >Backend Development >PHP Tutorial >Warning: file_get_contents(url): failed to open stream: No error in

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:38:125387browse

 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 也没有得出结果的

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