Re: Re: error using imagecreate function

From: Date: Thu, 26 Jul 2001 00:53:46 +0000
Subject: Re: Re: error using imagecreate function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-59648@lists.php.net to get a copy of this message
On Wed, 25 Jul 2001 22:06, venomous wrote: > This is the code just a normal imagecreate function > <?php > file://draw1.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); > ImageJPEG($image); > ImageDestroy($image); > ?> > > I think the fault is that i don't use the gd library but i don't know > how i must install it on my NT 4.0 apache 1.3.2 server Check your php.ini file (which is possibly in c:/winnt) for the entry extension=php_gd.dll and if it has a semicolon (;) at the beginning of the line remove it. Check you have a file called ph_gd.dll which is possibly in directory extensions under your php installation and restart apache service. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA I'm not paranoid! Which of my enemies told you this?

« previous php.general (#59648) next »