I found the DLL but I do not have an 'extensions' folder. Where should I create this folder? Under the /PHP folder I installed PHP to? Aldo when I try to run my code now, I get a new message:
X-Powered-By: PHP/4.1.2 Content-type: text/html Fatal error: Call to undefined function: imagecreatefrompng() in D:\wwwroot\counter\img.php on line 5 PHP Warning: Unable to load dynamic library './php_gd.dll' - The specified procedure could not be found. in Unknown on line 0 Matt Babineau Freelance Internet Developer e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.illuminatistudios.com -----Original Message----- From: Richard Black [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 12:27 PM To: Matt Babineau; 'Php-Win (E-mail)' Subject: RE: [PHP-WIN] Image generation question If its not in your extensions folder, you should be able to download it from php.net. On the downloads page there are 2 different windows binary downloads. The first of these is a zip package, which contains a whole host of extensions. The second has a windows installer, but no extensions included. If you download the zip file (making sure you get the right one for your PHP version!) you should then be able to extract the php_gd.dll file, place it in your extensions folder, and uncomment (or add the following line in your php.ini: extension=php_gd.dll hth, Richy ========================================== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -----Original Message----- From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 17:14 To: 'Richard Black'; 'Php-Win (E-mail)' Subject: RE: [PHP-WIN] Image generation question I don't think so, where can I get this? I found a GD library but it needs to be compiled or something and I don't know how to do that. Matt Babineau Freelance Internet Developer e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.illuminatistudios.com -----Original Message----- From: Richard Black [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 12:12 PM To: Matt Babineau; 'Php-Win (E-mail)' Subject: RE: [PHP-WIN] Image generation question Do you have the php_gd.dll extension?? And if so, is it listed as an extension which is listed in your php.ini file??? -----Original Message----- From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 17:02 To: 'Php-Win (E-mail)' Subject: [PHP-WIN] Image generation question I have been trying to generate images dynamicall but I keep getting this message. Fatal error: Call to undefined function: imagecreatefrompng() in D:\wwwroot\counter\img.php on line 5 Here is my code: <?php // set up image //$height = 200; //$width = 200; $im = imagecreatefrompng("$Image1.png"); $black = ImageColorAllocate($im, 0, 0, 0); // draw string ImageString($im, 4, 15, 15, "000001", $black); // output image Header("Content-type: image/png"); ImagePNG($im); // destroy img ImageDestroy($im); ?> Matt Babineau Freelance Internet Developer e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] p: 603.943.4237 w: <http://www.illuminatistudios.com/> http://www.illuminatistudios.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php