View Single Post
  #1 (permalink)  
Old July 7th, 2003, 03:14 PM
G-Zilla G-Zilla is offline
Registered User
 
Join Date: Jul 2003
Location: Cambridge, On, Canada.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to G-Zilla
Default Is the book wrong or me?

<html>
    <head>
        <title>

        </title>
    </head>
    <body>
    <?php
    $image = ImageCreate(200,150);
    $gray = ImageColorAllocate($image,204,204,204);
    $blue = ImageColorAllocate($image,0,0,255);

    ImageLine($image, 10,10,150,30, $blue);

    ImageJPEG($image);
    ImageDestroy($image);
    ?>

    </body>
</html>

gives me an error msg of

"Fatal error: Call to undefined function: imagecreate() in c:\apache\htdocs\tyb\imagetesting\imagecreate.php on line 9"

Will appear after each of your posts.
Reply With Quote