Hey there,
the copy() function does only allow copying of URLs with PHP version 4.3 or later... refer to the manual page.
Anyway, you can copy an image from a URL like this:
<?php
$src_file = 'http://www.php.net/images/php_logo.gif';
$dest_file = 'php_logo.gif';
// get image
$fp = fopen($src_file, 'rb');
$image_data = fread($fp, 100000);
fclose($fp);
// write image data to local disk
$fp = fopen($dest_file, 'wb');
fwrite($fp, $image_data);
fclose($fp);
?>
Peace,
DrTebi