hi,
i want to add the text to my images.here is my code but it is adding the text to only first image(horses.jpg) and displaying that image.
this is my code.i want to add www.abc.com on both images.
any of your idea will be appreciated.please find where iam wrong.
<?php
$arr1=array('horses.jpg','leop.jpg');
for($i=0; $i<count($arr1); $i++)
{
$image = imagecreatefromjpeg($arr1[$i]);
$font_size = 12;
$color = imagecolorallocate($image, 205,205,255);
$black = imagecolorallocate($image, 0,0,0);
ImageTTFText ($image, $font_size, 0, 01, 10, $black, "../fonts/ARIALBD.TTF","www.abcd.com");
ImageTTFText ($image, $font_size, 0, 00, 9, $color, "../fonts/ARIALBD.TTF","www.abcd.com");
header("Content-type: image/jpeg");
imagejpeg($image);
imagedestroy($image);
}
?>
thanks
mrjameer