note 53672 rejected from function.imagecreatefromgif by mazzanet

From: Date: Wed, 08 Jun 2005 21:29:05 +0000
Subject: note 53672 rejected from function.imagecreatefromgif by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90140@lists.php.net to get a copy of this message
Note Submitter: ingrid ---- I tried to use a GIF animation in this script: $TextFile = "teller.txt"; $Count = trim(file_get_contents($TextFile)); $FP = fopen($TextFile, "r"); $Count=fgets($FP, 4096); fclose ($FP); settype($Count, "integer"); $Count++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Count); fclose ($FP); } $image = "blad.gif"; $im = imagecreatefromgif($image); $red = ImageColorAllocate ($im, 255, 0, 0); $blue = ImageColorAllocate ($im, 0, 0, 255); $hit = "$Count"; $ip = $_SERVER["REMOTE_ADDR"]; ImageString($im, 5, 10, 1, "eigen tekst", $blue); ImageString($im, 3, 1, 130, " IP nummer $ip", $red); ImageString($im, 4, 1, 150, " is bezoeker $hit ", $red); header("Content-Type: image/gif"); Imagegif($im,'',100); ImageDestroy ($im); It worked, but the GIF animation does no longer move after being transformed into this PHP image. Is animation not supported by PHP ?

« previous php.notes (#90140) next »