مساعدة في سكود الطباعة على الصور
السلام عليكم :
انا كنت بدي ارفع صورة واطبع عليها الختم ...
كتبت الكود مظبوط ولكن طلعلي هذا الخطأ
<br />
<b>Fatal error</b>: Call to undefined function imagettftext() in <b>/home/risrisri/public_html/was/test/ww.php</b> on line <b>20</b><br />
فكرت الخطأ مني اخذت الكود الصحيح من موقع php.net واخذت الكود من سوالف وبقي الخطأ يظهر
بحثت بشكل جيد حول الموقوص فوجدت الكثير يقول الخطأ من ملف php.ini يجب يكون فيه كود معيا
هل من الممكن ان يساعدني احد
علما عطيت تصاريح 777 للمجلد
الكود هو :
------------------------------------------------------------
<?php
// Set the content-type
header('(anti-spam-content-type image/png');
// Create the image
$im = imagecreatetruecolor(400, 30);
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);
// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'verdana.ttf';
// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);
// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>
-------------------------------------------------
:shy:
__________________
معًا نصنع المستقبل