[insert_php] include 'text.php'; include 'picfile.php'; $ppath = 'templates/mug-13-18.jpg' ; $image = imagecreatefromjpeg($ppath); imagealphablending($image, false); imagesavealpha($image, true); $color = imagecolorallocate($image,0,0,0); // Create color imagealphablending($image, true); list($width, $height) = getimagesize($ppath); if (mb_strlen($tx1) < 8){ $fontSize=40; } else { $fontSize = $width / mb_strlen($tx1) * 0.4;} imagettftext($image, $fontSize,0, 340, 285, $color , $font6, $tx1); imagepng($image, $temp_folder.$fn.'.jpg'); imagedestroy($image); echo ' '; include '1name.php'; include 'vip.php'; [/insert_php]