etron_neo
Fri 4th Oct '02, 6:13am
hi...
i have problem in drawing image in php...
here is the script:
Header("Content-Type: image/gif");
$im = ImageCreate(500, 75);
$red = ImageColorAllocate($im, 255, 0, 0);
ImageFill($im, 100, 100, $red);
ImageGIF($im);
but when i try on my computer (localhost), i get this:
Fatal error: Call to undefined function: imagecreate() in c:\apache\htdocs\php\examproject\drawimage.php
i have check my php.ini file, and it has the php_gd.dll in there...
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_gd.dll
and some others dll files...
and here is the httpd.conf for the apache server:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
i'm running Apache HTTP Server Version 1.3, PHP Version 4.1.2 on Windows XP Home Edition
i have problem in drawing image in php...
here is the script:
Header("Content-Type: image/gif");
$im = ImageCreate(500, 75);
$red = ImageColorAllocate($im, 255, 0, 0);
ImageFill($im, 100, 100, $red);
ImageGIF($im);
but when i try on my computer (localhost), i get this:
Fatal error: Call to undefined function: imagecreate() in c:\apache\htdocs\php\examproject\drawimage.php
i have check my php.ini file, and it has the php_gd.dll in there...
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_gd.dll
and some others dll files...
and here is the httpd.conf for the apache server:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
i'm running Apache HTTP Server Version 1.3, PHP Version 4.1.2 on Windows XP Home Edition