Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse/sam/certificate/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse/sam/certificate/certificate.php |
<?php $a = "जेऊर "; $yourname = $a; $date = "09 Dec 2013"; $pos = "2nd"; $image = imagecreatefrompng('1crt.png'); imagealphablending($image, true); $red = imagecolorallocate($image, 150,0, 0); // imagefttext("Image", "Font Size", "Rotate Text", "Left Position", "Top Position", "Font Color", "Font Name", "Text To Print"); imagefttext($image, 30, 0, 40, 154, $red, 'mono.ttf', $yourname); imagefttext($image, 20, 0, 312, 206, $red, 'mono.ttf', $date); imagefttext($image, 20, 0, 82, 256, $red, 'mono.ttf', $pos); /* If you want to display the file in browser */ header('Content-type: image/png'); ImagePng($image); imagedestroy($image); /* if you want to save the file in the web server */ /* $filename = 'certificate_aadarsh.png'; ImagePng($image, $filename); imagedestroy($image); */ /* If you wnat the user to save the file */ /* $filename = 'certificate_aadarsh.png'; ImagePng($image,$filename); header('Pragma: public'); header('Cache-Control: public, no-cache'); header('Content-Type: application/octet-stream'); header('Content-Length: ' . filesize($filename)); header('Content-Disposition: attachment; filename="' . basename($filename) . '"'); header('Content-Transfer-Encoding: binary'); readfile($filename); imagedestroy($image); */ $filename = 'certificate_aadarsh.png'; ImagePng($image, $filename); imagedestroy($image); ?>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4