Server configuration by allow_url_fopen=0 in

前端 未结 6 2028
傲寒
傲寒 2020-12-14 18:24

I\'m getting the following error when running a script. The error message is as follows...

Warning: file_get_contents() [function.file-get-contents]:

6条回答
  •  孤城傲影
    2020-12-14 19:14

    Using relative instead of absolute file path solved the problem for me. I had the same issue and setting allow_url_fopen=on did not help. This means for instance :

    use $file="folder/file.ext"; instead of $file="https://website.com/folder/file.ext"; in

    $f=fopen($file,"r+");
    

提交回复
热议问题