file_get_contents - failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

前端 未结 4 1209
迷失自我
迷失自我 2020-11-27 20:46

I\'m having some weird problems with file_get_contents after moving my site to a new domain. I had to set up a new domain and IP address (using Plesk) to get a new ssl certi

4条回答
  •  爱一瞬间的悲伤
    2020-11-27 21:33

    Most hosting provides now block the furl_open parameter which allows you to use file_get_contents() to load data from an external url.

    You can use CURL or a PHP client library like Guzzle

提交回复
热议问题