All:
I've been outta the PHP loop for awhile, but the need has come up for me to write a script that retireves remote files and save them to disk. I get the pointer to the remote image fine, but for the life of me, I can't figure out how to save it to disk! Any help would be much appreciated.
I got it, thanks anyway. For what its worth, here's what I did:
$fp = fopen($img_path,'rb'); $fp2 = fopen($final_img,'wb'); while (!feof($fp)) { $_data = fread($fp,1024); fwrite($fp2,$_data); } fclose($fp); fclose($fp2);