İnternet Programlama Dersi – 1 (Güz-2017) Hafta – 12 – 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 13.12.2017 * Time: 19:14 */ //phpinfo(); // resimle ilgili bilgiler //$boyutlar = getimagesize("img.jpg"); //var_dump($boyutlar); //echo $boyutlar[0]."-->".$boyutlar[1]; header("Content-type: image/png"); $dogrulama=strtoupper(substr(md5(rand(0,9999999)),0,6)); $im = imagecreate(500, 500); $artalan = imagecolorallocate($im, 255, 255, 255); $önalan = imagecolorallocate($im, 255, 0, 0); imagestring($im, 10, 150, 250, $dogrulama, $önalan); imagepng($im); imagedestroy($im); |
Okumaya devam et
Son Yorumlar