??? im rubbish at php by the way, do you mean change
code:
$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
to this...
code:
$folderdir = Header("Location: $imageurl");
$types = array('jpeg','.png','.bmp','.jpg','.gif');
???