Click to See Complete Forum and Search --> : imagecreate


Anon
11-03-2000, 05:26 AM
Hello....how to use imagecreate? Someone know how to use imagecreate, install the GD library over win2000?
Thanks

Anon
11-03-2000, 06:21 AM
Have an similar problem...
Have downloaded latest release of PHP 4 from www.php4win.de (Germany),
inclueds the php_gd.dll
1) copied all DLLs from the dll-folder to your system- (Win98) / system32 (WinNT)-folder
2) renamed the php.ini-xxxxx to php.ini
3) cut ; from the line ;extension=php_gd.dll
4) placed php_gd.dll in the php-folder or set a path in the line extension_dir = ./ of the php.ini-file
5) started php.exe for testing. No error eccured

But

<BODY>
<?php
if (ImageTypes() & IMG_PNG) { echo "with PNG-Function"; }
?>
</BODY>

Error: Call to undefined function


<?php
header ("Content-type:image/png");
$im = @ImageCreate (50, 100);
ImagePNG ($im);
?>

don't work - no Error eccurs but no image is drawn