Zur imagecreatefromgif Funktion

Dieses Thema im Forum "Webentwicklung" wurde erstellt von opio12, 24. Februar 2006 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 24. Februar 2006
    Hallo,

    hab ein Prob, habe folgenden Zeilen Code in php gecodet:

    <? header('Content-type: image/gif');
    $img = ImageCreateFromGif('security.gif');
    $text= $werte[rand(0,count($werte)-1)];
    $color = ImageColorAllocate($img, 0, 0, 0);
    $ttf = 'pristina.ttf';
    $ttfsize = 30;
    $angle = rand(0,5);
    $text_x = rand(5,50);
    $text_y = 30;
    imagettftext($img, $ttfsize, $angle, $text_x, $text_y, $color, $ttf,

    $text);
    imagegif($image);
    echo $img;
    ?>

    Doch ich bekomme immer dieselbe Fehlermeldung: " Call to undefined function: imagecreatefromgif() ", was hat das zu bedeuten?? Was mach ich falsch??? Habe PHP Version 4.2.1!!!

    Danke im Voraus

    MfG opio12
     
  2. 24. Februar 2006
    versuch es so mal

    PHP:

    <? header ( 'Content-type: image/gif' );

        
    $bild  = 'security.gif' ;
        
    $img  ImageCreateFromGif ( $bild );
        
    $text $werte [ rand ( 0 , count ( $werte )- 1 )];
        
    $color  ImageColorAllocate ( $img 0 0 0 );
        
    $ttf  'pristina.ttf' ;
        
    $ttfsize  30 ;
        
    $angle  rand ( 0 , 5 );
        
    $text_x  rand ( 5 , 50 );
        
    $text_y  30 ;
        
    imagettftext ( $img $ttfsize $angle $text_x $text_y $color $ttf

    $text );
        
    imagegif ( $image );
        echo 
    $img ;
    ?>

     
  3. 25. Februar 2006
    funzt leider auch nicht!!!
     
  4. 25. Februar 2006
    Zitat aus dem PHPmanual:

    dh es gibt diese funktion in der alktuellen version net mehr da sie irgendwann die rechte nicht mehr hatten wenn ich mich richtige erinere
     
  5. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.