Hi
i recently decided to start using some gd tools, as my new web host supported them.
i checked this out from using phpinfo(), this is what i got under gd
GD Support enabled
GD Version bundled (2.0.22 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
from this i thought, oh good i do it
but then when i tried to run a simple test script
<?php
header("Content-type: image/png");
$image = imagecreatefrompng("gs-banner-sm.png");
$font_size = 14;
$color = imagecolorallocate($image, 255,255,255);
$black = imagecolorallocate($image, 0,0,0);
imagettftext ($image, $font_size, 0, 56, 36, $black, "./arial.ttf","Test Text");
imagettftext ($image, $font_size, 0, 55, 35, $color, "./arial.ttf","Test Text");
imagepng($image);
imagedestroy($image);
?>
i got the above error
am i doing anything wrong, or is there something wrong with my host?
thanks
Comms