I have my code
<?PHP
$background1 = "symbianize-id.png";
$avatar1 = "av.png";
$background = imagecreatefrompng($background1);
$avatar = imagecreatefrompng($avatar1);
imagecopymerge($background, $avatar, 5, 28, 0, 0, 70, 67, 100);
$white = imagecolorallocate($background, 255, 255, 255);
$fontfile = "tahoma.ttf";
$string = "Superdude1";
//imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function');
imagettftext($background, 12, 0, 3, 17, $white, $fontfile, $string);
imagepng($background, "usercard.png");
imagedestroy($background);
imagedestroy($avatar);
?>
And its getting error
Fatal error: Call to undefined function imagettftext() in /home/xx/public_html/x.com/x/id.php on line 13