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"; }
}
Я попытался с помощью Curl, но не мог понять, как сделать то, что это достижение. Любая помощь приветствуется!
См. [Этот ответ] (http://stackoverflow.com/a/20562385/1438393) для функции 'curl_get_contents()'. –