|  03 Kasım 2007, 03:09 | #1 | 
  | ÇevrimdışıKullanıcıların profil bilgileri misafirlere kapatılmıştır.    |  [PHP] Guvenlik Kodu Resmi Yapalım  
 
 
 
  Kodlar:<?php // Developed By ...... // Getting the Security Code and Image Structure
 $intCodeLen = 8;
 $intCodeStart = rand(1,24);
 $intParalellism = rand(1,10);
 $randomCode = md5(rand(0,500));
 $securityCode = substr($randomCode,$intCodeStart,$intCodeLen);
 $intX = 140;
 $intY = 50;
 $ttfFile = ’harrison.ttf’;
 // Changing the Content Type For image/png
 header("Content-type: image/png");
 // Creating Image
 $imageObject = imagecreatetruecolor($intX, $intY);
 $whiteConst = imagecolorallocate($imageObject, 255, 255, 255);
 $blackConst = imagecolorallocate($imageObject,0,0,0);
 imagefilledrectangle($imageObject, 0, 0, 399, 50, $whiteConst);
 // Write Security Code to Image
 imagettftext($imageObject, 22, $intParalellism, 20, 40, $blackConst, $ttfFile, $securityCode);
 // Set the New Image
 imagepng($imageObject);
 imagedestroy($imageObject);
 ?>   Örnek: [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
 
Gereken Tum Dosyalar: [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
 | 
  | 
        
        
        
        
         
		  |   |