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,该怎么解决

WBOY
Release: 2016-06-13 12:16:38
Original
2968 people have browsed it

Warning: file_get_contents(url): failed to open stream: No error in
 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')会自动转义为上面的内容?导致出错??怎样解决??
------解决思路----------------------
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')
------解决思路----------------------

Related labels:
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