file_get_contents not working?

后端 未结 6 1188
遥遥无期
遥遥无期 2020-11-28 13:25

This code is not working to server. But It is working to my localhost (xampp)

$url = file_get_contents(\'http://www.site.com/\');
$xhtml=\'|

        
6条回答
  •  抹茶落季
    2020-11-28 14:24

    You need to allow

     allow_url_fopen
    

    in your php.ini config file. Some hosts disallow it for security

提交回复
热议问题