作者kencool107 (脸都歪了)
看板PHP
标题[请益] file_get_contend获取https的内容
时间Wed Jul 11 16:37:01 2012
原本file_get_contend();
是获取http的内容
今天网站改成https就不能了
Warning: file_get_contents(
https://domain/)
[function.file-get-contents]: failed to open stream: Invalid argument in
错误内容
我後来把extension=php_openssl.dll打开
还是不行
是少做了哪些步骤吗
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.251.55.25
1F:→ kerash:网站如果不允许 fopen 取得那就不行 07/11 17:10
2F:推 liaosankai:试着改用curl 07/11 18:30
3F:→ dou0228:可以用 HttpRequest 07/11 21:06