I have a small php script which loads gif images dynamically.
The code is:
$image_path = "images/p1.gif";
$image = imagecreatefromgif($image_path);
However problem is, it does not load animated gifs. It simply loads the first frame of animated gif. How to display animated gif completely?