Results 1 to 2 of 2
May 21, 2003, 16:12 #1
- Join Date
- Dec 2002
- 0 Post(s)
- 0 Thread(s)
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:
$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!