Re: image generation with PHP

From: Date: Mon, 25 Nov 2002 06:07:56 +0000
Subject: Re: image generation with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125885@lists.php.net to get a copy of this message
No luck I have installed GD lib and zlib and all into c:\php\extensions bur i still get an error <br /> <b>Fatal error</b>: Call to undefined function: imagecreate() in <b>c:\inetpub\wwwroot\image.php</b> on line <b>24</b><br /> image.php code :<? /* Header( "Content-type: image/jpeg"); */Header( "Content-type: image/gif");/* create image */$image = imagecreate(200,200); /* create color R=100, G=0, R=0 */$maroon = ImageColorAllocate($image,100,0,0); /* create color R=255, G=255, R=255 */$white = ImageColorAllocate($image,255,255,255); /* create color green */$green = ImageColorAllocate($image,0,100,0); /* create white background*/ImageFilledRectangle($image,0,0,200,200,$white); /* create frame*/ImageRectangle($image,10,10,190,190,$maroon); /* create inner rectangle*/ImageFilledRectangle($image,50,70,150,150,$maroon); /* display 5 fonts */for ($i=1; $i <= 5; $i++) ImageString($image,$i,15,$i*10,'php.weblogs.com',$green); /* render image *//* ImageJPEG($image); */ImageGIF($image);/*cleanup memory */ImageDestroy($image); ?>

« previous php.general (#125885) next »