Thanks Kudose... Your solution works great. 😃
Also, found this code that is presented in a slightly different way (still using the 'rb') which is what I implemented:
How can i save an image from a remote web server to my web server?
Aug 30th, 2001 03:56
Pavel Prishivalko, Bjorn H
http://www.faqts.com/knowledge_base/view.phtml/aid/10321/fid/51
Here's the snippet:
$url_file = fopen("http://host/image.jpg",'rb');
$newfile_name = "/tmp/mydownload.file";
$newfile = fopen($newfile_name,'wb');
while (!feof($url_file)) {
$chunk = fread($url_file,1024);
fwrite($newfile,$chunk);
}
fclose($newfile);
fclose($url_file);
in file "/tmp/mydownload.file" you will have the image you need
:evilgrin: