RE: [PHP] can't get gd working at all

From: Date: Wed, 25 Jul 2001 14:35:01 +0000
Subject: RE: [PHP] can't get gd working at all
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59555@lists.php.net to get a copy of this message
If the gd extension is not loaded each time php is loaded you will need to cause it to be loaded from your script. http://www.php.net/manual/en/function.dl.php I keep my extensions in a separate directory, off the php root directory, so to load my gd I use the following; dl("extensions/php_gd.dll"); good luck. Warren Vail -----Original Message----- From: Matt Greer [mailto:mgreer@fieldmuseum.org] Sent: Wednesday, July 25, 2001 6:55 AM To: php-gen Subject: [PHP] can't get gd working at all I'm trying to get a simple piece of code involving gd functions to work just to ensure gd is working properly on my server. I took this straight from my book. All that comes up is a broken image. I talked with my host and they assured me gd is installed and working properly on the server. Any ideas? Here's what I'm trying to do: <?php //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); ?> This is from chapter 16 of Beginning PHP4 from Wrox press. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59555) next »