Alternative to file_get_contents?

前端 未结 6 830
死守一世寂寞
死守一世寂寞 2020-12-04 23:44
$xml_file = file_get_contents(SITE_PATH . \'cms/data.php\');

The problem is that a server has URL file-access disabled. I cannot enable it, its a h

6条回答
  •  天涯浪人
    2020-12-05 00:33

    If you're trying to read XML generated from a URL without file_get_contents() then you'll probably want to have a look at cURL

提交回复
热议问题