PHPでURL指定で直接サーバーに画像等をダウンロードする方法

 $data = file_get_contents($value);
 file_put_contents('./download/'.$filename,$data);

ネタ元

9-bb.com