imagegif
| From: | Sianny Swandajani | Date: | Tue, 05 Sep 2000 15:21:56 +0000 |
| Subject: | imagegif | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15308@lists.php.net to get a copy of this message | ||
Hallo ...
I use win nt, apache web serever and php3.0.16 and
php3_gd.dll is supported in php, the php3_gd.dll is
under ApacheGroup/apache/cgi-bin
and I have also uncomment the extensions ...
the php3_gd.dll version is 1.3
I have taken an example for imagegif directly , here
is my file:
file gd.php3
<?php
// Send the header, so the browser exposes a GIF image
Header("Content-type: image/gif");
// Create a new image, of size 100 x 100 pixels
$im = imageCreate(100, 100);
// Allocate the colors for the image
$black = ImageColorAllocate($im, 0, 0, 0); //
background color
$white = ImageColorAllocate($im, 255, 255, 255);
// Draw a line from the upper left corner to the lower
right corner
ImageLine($im, 0, 0, 99, 99, $white);
// Send the image to the browser
ImageGif($im);
// Destroy the image after we are done
ImageDestroy($im);
?>
and it comes :
<br>
<b>Fatal error</b>: Call to unsupported or undefined
function imagegif() in <b>c:\programme\apache
group\apache\users\sianny\gd.php3</b> on line
<b>17</b><br>
in IE and in Netscape4.xx comes the broken image ...
I don't know what's wrong.
Thanks ...
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/