Grrr. Thsi thing is driving me insane. What I am tryign to do is simply retrieve an image located on another server via HTTP and then save it in a directory identical to the one one the remote server. Is this possible? I woudl it should be. This si what i am working with. Someoen please correct me where i am wrong.
function getimg($img,$path){
$fp = fopen("http://www.remotesite.com/images/$img", "b");
if($fp){
fputs ($fp, $img);
fclose ($fp);
return true;
}else{
echo $errstr;
return false;
}
}
I am not getting any errors, and it returns true, but no image is saved that i can see.