I want to get an image from a remote site, and then save it on my computer.
I've tried both curl and fopen, and neither seem to be working.
here is an example using fopen
$imgpointer = fopen("http://$img_array[$i]", "wb");
fwrite($imgpointer,"$dir_country/$dir_country$i$y.gif");
fclose($imgpointer);
am i doing something wrong? It writes a file, but it's always 0kb.
I'm wondering if it's an assue because of the URL of the img i'm trying to grab....it looks something like this
remotesite/img937859205739/Body/78.27?OpenImage=2375893&Output=gif
so you can see, it's not a standard filename.gif path...but it does indeed return a gif. Is that the problem?