Announcement

Collapse
No announcement yet.

Dynamic image creation help.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mincer
    replied
    Ok, GD isn't loaded.

    Leave a comment:


  • Mincer
    started a topic Dynamic image creation help.

    Dynamic image creation help.

    When I execute this code:

    Code:
    <?php
    
    $im = ImageCreate(200,150);
    
    $blue = ImageColorAllocate($im,0,0,255);
    
    ImageLine($im,10,10,150,30,$blue);
    
    Header ("Content-type: image/png");
    
    ImagePNG ($im);
    
    ImageDestroy ($im);
    
    ?>
    I just get:

    "Fatal error: Call to undefined function: imagecreate() in D:\Intranet\www_root\matt\test.php on line 3"

    Anyone shed any light on that?
    Last edited by Mincer; Fri 23 Nov '01, 2:54am.
Loading...
Working...
X