
 Matt Nowak - 2008-03-07 17:11:55
I have a PHP script that creates a single .gif image based upon the parameters you pass to it. However when I call a couple of version of the image ans store the binary data in the array, it only shows the first image.  
All the images are the same dimension. I can call the images and get the binary data by the following (Note that URL for the image is stored in a XML doc): 
	foreach ($allimages as $value) {
		$FullFile = "http://xxx/gid/."$value->nodeValue.".gif";
		$contents = file_get_contents($FullFile);
		$frames [ ] = $contents;
		$framed [ ] = 5;
	}
	$gif = new GIFEncoder(
		$frames,
		$framed,
		0,
		2,
		0, 0, 0,
		"BIN"
		);
	Header ( 'Content-type:image/gif' );
	echo $gif->GetAnimation ( );
Any ideas why it only shoes the first image?