Forum Moderators: coopster
$url = 'http://www.domain.com/image.jpg';
$localfile = 'mydir/image.jpg';
copy($url, $localfile);
incase anyone comes here looking for an answer.
If you can't get that to work then try this:
$url = 'http://www.domain.com/image.jpg';
$data = file_get_contents($url);
$handle = fopen(basename($url), 'w');
fwrite($handle, $data);
fclose($handle);