作者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
→ kerash:網站如果不允許 fopen 取得那就不行 07/11 17:10
推 liaosankai:試著改用curl 07/11 18:30
→ dou0228:可以用 HttpRequest 07/11 21:06