I am looking for a way to pull images from an external server and save it on my server for a flash image viewer. The link to gain the avatar picture redirects to there main image here is an example. The issue im having it its not pulling the image from the redirect I have found one that will pull it but if the file extension is something other then jpg it will not pull the image at all. I am in need of a way to pull these images with gif,jpg,png,etc file extentions
redirect links to image they all go to the same place.
[url]http://www.imvu.com/catalog/web_av_pic.php/av/wishmaster/img/avatar.jpg
[url]http://www.imvu.com/catalog/web_av_pic.php?av=wishmaster
change the name wishmaster to the avatar pic you want to view example
[url]http://www.imvu.com/catalog/web_av_pic.php?av=mdrax
but the file extensions change is my issue
[code=php]<?
$img = imagecreatefromjpeg(“http://www.imvu.com/catalog/web_av_pic.php/av/wishmaster/img/avatar.jpg”);
imagejpeg($img, “/home/content/…”);
?>