problem in using gd library please help
Posted: Thu May 15, 2008 2:04 pm
hi my friend
I 'm a beginner in php and have some problems with it,could any body help me please:
1-I want to use gd library in my php program using xampp and phpDesigner2007 in windows
but the it doset work and the picture do not shown.(the php_gd2.dll is active in php.ini
and the extension_dir is correct)
i use some codes like this:
$height=200;
$width=200;
$im=imagecolorallocate($width,$height);
$white=imagecolorallocate($im,255,255,255);
$blue=imagecolorallocate($im,0,0,255);
imagefill($im,0,0,blue);
header('content-type:image/png');
ImagePng($im);
ImagePng($im);
Imagedestroy($im);
2- it dosent support ttf
3- when i replace new php_gd2.dll in programfiles\xampp\php\extensions phpDesigner is
destroyed and i have to reinstall it.
Regards
I 'm a beginner in php and have some problems with it,could any body help me please:
1-I want to use gd library in my php program using xampp and phpDesigner2007 in windows
but the it doset work and the picture do not shown.(the php_gd2.dll is active in php.ini
and the extension_dir is correct)
i use some codes like this:
$height=200;
$width=200;
$im=imagecolorallocate($width,$height);
$white=imagecolorallocate($im,255,255,255);
$blue=imagecolorallocate($im,0,0,255);
imagefill($im,0,0,blue);
header('content-type:image/png');
ImagePng($im);
ImagePng($im);
Imagedestroy($im);
2- it dosent support ttf
3- when i replace new php_gd2.dll in programfiles\xampp\php\extensions phpDesigner is
destroyed and i have to reinstall it.
Regards