Re: undefined function imagecreate()
From: Jed R. Brubaker (jed.brubaker_at_psych.utah.edu)
To: email@example.com Date: Fri, 3 Oct 2003 00:31:03 -0600
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
"Marco Moonen" <firstname.lastname@example.org> wrote in message
> Just new at PHP and learning.
> Trying to execute simple script to draw a line:
> Header("Content-type: image/jpeg");
> $image = ImageCreate(200,150);
> $gray = ImageColorAllocate($image,204,204,204);
> $blue = ImageColorAllocate($image,0,0,255);
> 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