here is the alternative piece of code
$string = "John";
$length=strlen($string);
$width=300;
$img_number = imagecreate($width,50);
$white = imagecolorallocate($img_number,255,255,255);
$blue = imagecolorallocate($img_number,0,0,255);
$black = imagecolorallocate($img_number,0,0,0);
$grey_shade = imagecolorallocate($img_number,204,204,204);
imagefill($img_number,0,0,$white);
header("Content-type: text/html; charset=iso-8859-7");
header("Content-type: image/jpeg");
ImageRectangle($img_number,0,0,299,299,$black);
imagettftext($img_number,0,4,0,2,$blue,"arial.ttf",$string);
imagejpeg($img_number);
the arial.ttf is in the same folder with the php file
i run the file through the browser but a dead pic link occurs.
Although i have installed all the component ( I used the installation kit phpdev423) ti doesn't work as i expext 🙁
I put the code accompanied by the the arial.ttf on the tripod host and it didn't work. 🙁🙁