About GD
Hi
i have question
Apache 1.3 3.1
php 4.3.4-win32
mysql
windows Xp Home Edition
I install those and and all work good:)
I want to make GD works in php
As we know in new php zip package, we do not have php_gd.dll, instead of that we have php_gd2.dll
Here is what i did:
i went to php.ini in my dir c:\windows\php.ini (and also I copy and paste the all folder from C:\php\dlls to system.
and i omit the ; on ;extension php_gd2.dll:
that means i change this ;extension php_gd2.dll to this extention php_gd.dll
and the extention_dir c:\php\extensions
I made the code like
<?php
header ("Content-type: image/png");
header ("Content-type: image/jpeg");
?>
<html>
<body>
<?php
$image = imagecreate(200, 200);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
imagefilledrectangle($image, 10, 10, 190, 190, $black);
for ($i=1; $i<=5; $i++)
imagestring($image, $i, 15, $i*10, 'Font-Test', $black);
imagepng($image);
imagejpeg($image);
imagedestroy($image);
?>
</body>
</html>
and I save it as image.php
when i run it all i got was something realy crazy. i was some type of font that i cannot even read them like %^&$#$%^&DYSWR#$5fg#$%
PLEASE HELP ME:(
|