Server configuration by allow_url_fopen=0 in

前端 未结 6 2024
傲寒
傲寒 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:13

    @blytung Has a nice function to replace that function

    ";
      $contents = '';
    } else {
      curl_close($ch);
    }
    
    if (!is_string($contents) || !strlen($contents)) {
    echo "Failed to get contents.";
    $contents = '';
    }
    
    echo $contents;
    ?>    
    

提交回复
热议问题