何らかの理由で、以下の画像をダウンロードしようとすると、このエラーが発生します。2つの画像のうち1つがこのエラーを返しています。
Warning: file_get_contents(http://www.ndcontent.com/rk/mikesapartment/faces/marica.jpg ) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\tgp\index.php on line 22
私が使用するコードは次のとおりです:($ randは16桁の整数で、ダウンロードするたびに変更されます)
file_put_contents('img/'.$rand.'.jpg', file_get_contents($img_url));