You know, I am not sure if this will help, but I have a problem very similar
to this in my debugger.
When I run a script check through my WIN32 PHP module, I get errors related
to imagecreate() functions. In a current project I use imagecreatefromjpeg()
functions and get the same problems.

Fortunately for me, once my scripts have gone up to the server they have
worked fine. You might have the same luck!

One other thing - you might want to check the image capabilities of your
PHP's build. One server I worked on did not have the capabilities to work
with GIFs or PNGs, so I had to do things with imagecreatefromjpeg() (as I
mentioned above).

Good luck!
Jed


"Marco Moonen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Just new at PHP and learning.
> Trying to execute simple script to draw a line:
> <?php
> //draw2.php
> Header("Content-type: image/jpeg");
> $image = ImageCreate(200,150);
> $gray = ImageColorAllocate($image,204,204,204);
> $blue = ImageColorAllocate($image,0,0,255);
> ImageLine($image,10,10,150,30,$blue);
> ImageArc($image,150,65,70,70,0,360,$blue);
> ImageJPEG($image);
> ImageDestroy($image);
> ?>
>
> Browser returns:
> <br />
> <b>Fatal error</b>:  Call to undefined function:  imagecreate() in
> <b>c:\inetpub\wwwroot\draw4.php</b> on line <b>4</b><br />
> Why is imagcreate() not understoodMarco
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to