file_get_contents() error

前端 未结 2 643
孤城傲影
孤城傲影 2020-12-06 12:05

I am using file_get_contents on my PHP and it throws some errors:

My code

#try to fetch from remote
$this->remotePath = \"http://some-hostname.com         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 12:26

    It seems "allow_url_fopen" setting is false on your server and hence does not allow using URLs with file_get_contents().

    Try using CURL instead that is a better and efficient way of communicating with other server.

提交回复
热议问题