Home > Backend Development > PHP Tutorial > 各位哥。进来瞧瞧file_get_contents的有关问题

各位哥。进来瞧瞧file_get_contents的有关问题

WBOY
Release: 2016-06-13 13:47:02
Original
782 people have browsed it

各位哥。进来瞧瞧file_get_contents的问题
我拼接了一个URL串。然后使用file_get_contents($url)获取信息
结果报错。
但是把这个URL输出来,复制,粘贴进地址栏里面回车出来能正常访问。
已经使用urlencode 无效

------解决方案--------------------
打开php.ini找到 ;extension=php_openssl.dll ,去掉双引号";" ,重启web服务器即可。

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