[請益] file_get_contend獲取https的內容

看板PHP作者 (臉都歪了)時間13年前 (2012/07/11 16:37), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
原本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

07/11 17:10, , 1F
網站如果不允許 fopen 取得那就不行
07/11 17:10, 1F

07/11 18:30, , 2F
試著改用curl
07/11 18:30, 2F

07/11 21:06, , 3F
可以用 HttpRequest
07/11 21:06, 3F
文章代碼(AID): #1F_Jimvy (PHP)
文章代碼(AID): #1F_Jimvy (PHP)