how to copy a remote image to my server???
I am creating a script that takes an image from one server, makes it smaller and saves it on another server but I am stuck on how to transfer an image...
I tried this:
which works but takes FOREVER (setting the exectution limit to 120 seconds still is not enough, even with small files) so I am hoping that somebody can suggest a better way!
$url_logo = 'http://www.serverA.com/image.jpg';
$url_logo_local = 'smaller_image.jpg';
$fp = fopen($url_logo, "r");
$contents .= fread($fp, 4096);
$fp = fopen($url_logo_local, "w+");
Thanks a lot if you can help!