Forum Moderators: coopster
Is this the best practice?
$image = 'http://www.domain.com/image.jpg';
$remote_image = fopen($image, "rb");
$image_data = fread($remote_image, filesize($image));
$fp = fopen('/tmp/new_file_'.$#*$!x, 'w');
fwrite($fp, $image_data);
fclose($remote_image);
fclose($fp);