note 7633 added to ImagePNG

From: Date: Thu, 10 Aug 2000 02:18:16 +0000
Subject: note 7633 added to ImagePNG
Groups: php.notes 
Request: Send a blank email to php-notes+get-743@lists.php.net to get a copy of this message
My Script doesnt work: <?php header ("Content-type: image/png"); $im = @ImageCreate (50, 100) or die ("Cannot Initialize new GD image stream"); $background_color = ImageColorAllocate ($im, 255, 255, 255); $text_color = ImageColorAllocate ($im, 233, 14, 91); ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); dl("php3_gd.dll"); ImagePng ($im); ?> I get this error message: Module load failed - duplicate function name - imagettftext in <b>(null)</b> on line <b>8</b><br> <br> <b>Warning</b>: gd: Unable to register functions, unable to load in <b>(null)</b> on line <b>8</b><br> <br> <b>Fatal error</b>: Call to unsupported or undefined function imagepng() in <b>E:\Bert\InetPub\wwwroot\Site\brett\news\test\png.php3</b> on line <b>9</b><br> http://www.php.net/manual/function.imagepng.php

« previous php.notes (#743) next »