Well, essentially, this is the script I'm using
<?php
$src = "http://upload.wikimedia.org/wikipedia/commons/4/4b/Everest_kalapatthar_crop.jpg";
$data = file_get_contents($src);
file_put_contents("picture.gif", $data);
$image = imagecreatefromgif("picture.gif");
?>
The last line was used to test how php would handle the image file, however php throws this error:
Warning: imagecreatefromgif() [function.imagecreatefromgif]: 'picture.gif' is not a valid GIF file