Re: undefined function imagecreate()
From: Jed R. Brubaker (jed.brubaker_at_psych.utah.edu)
Date: 10/03/03
- Next message: Jed R. Brubaker: "Re: Converting various DB's to MySQL using PHP"
- Previous message: Martin Towell: "RE: [PHP] ImageColorAllocate() Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net 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
mentioned above).
Good luck!
Jed
"Marco Moonen" <marco_moonen@hotmail.com> wrote in message
news:20030807153200.85651.qmail@pb1.pair.com...
> 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
>
>
- Next message: Jed R. Brubaker: "Re: Converting various DB's to MySQL using PHP"
- Previous message: Martin Towell: "RE: [PHP] ImageColorAllocate() Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|