developer
Kod · PHP25 qator
<?php 

// session_start();

$img = imagecreatetruecolor(100, 50);

$son = mt_rand(10000,99999);

 //$harf = mt_rand();

 // $_SESSION['id'] = $son;

$color = imagecolorallocate($img, 255, 255, 255);

imagettftext($img, 20, 15, 15, 10, $color, 'ARIALN.TTF', $son);

//imagestring($img, 10, 20, 15, $son, $color);

header('Content-type: image/jpeg');

imagejpeg($img);

imagedestroy($img);

?>

do'stlar shuni bir ko'rilarchi kompilarda xamp yoki open da font shrift paddeshka qimayapti menimcha menda