0
是否有替代file_get_contents?这是我在遇到问题的代码:是否有替代file_get_contents?
if (!$img = file_get_contents($imgurl)) { $error[] = "Couldn't find the file named $card.$format at $defaultauto"; }
else {
if (!file_put_contents($filename,$img)) { $error[] = "Failed to upload $filename"; }
else { $success[] = "All missing cards have been uploaded"; }
}
我试图使用卷曲,但不能完全弄清楚如何做到这是什么完成。任何帮助表示赞赏!
请参阅[本答案](http://stackoverflow.com/a/20562385/1438393)了解'curl_get_contents()'函数。 –