i have tried the whole code and it didnt work. are you able to give me some hints as to how to introduce the PHP to the plan image field? DO you do it via the source button on the editor?
Code:
<!--?php
//Set the Content Type
header('Content-type: image/jpeg');
// Create Image From Existing File
$jpg_image = imagecreatefromjpeg(membershipcard.jpg');
// Allocate A Color For The Text
$white = imagecolorallocate($jpg_image, 255, 255, 255);
$black = imagecolorallocate($jpg_image, 0, 0, 0);
// Set Path to Font File
$font_path = 'swiss.ttf';
$fontsize = 8;
// Set Text to Be Printed On Image
$text1 = "Test HKPA membership card";
$text2 = "TEST HKPA MEMBERSHIP CARD TWO";
// Print Text On Image size, angle, left offset 0=left, vert offset 0=top
imagettftext($jpg_image, $fontsize, 0, 10, 20, $black, $font_path, $text1);
imagettftext($jpg_image, $fontsize, 0, 10, 30, $black, $font_path, $text2);
// Send Image to Browser
imagejpeg($jpg_image);
// Clear Memory
imagedestroy($jpg_image);
?>