PHP: file_get_contents failed to open stream: Connection refused

前端 未结 3 1694
孤街浪徒
孤街浪徒 2021-01-23 05:29

I am trying to access a second server with file_get_contents and simple_load_xml and I get \"failed to open stream: Connection refused\"
What can be the result?



        
3条回答
  •  后悔当初
    2021-01-23 06:02

    I believe this is because you need a resource - fopen(), instead of a string - file_get_contents()

提交回复
热议问题