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

Reply via email to