Php ile dinamik resimleri olusturabilmeniz gosterecegimiz bu ornekte serveriniz GD destekli olmasi gerekmetedir .

 

 

 

 

 

ilk once kucuk bir form olusturuyoruz

HTML:
  1. <form action=”resim_yap.php” method=”post”> Denemek icin E-Mail Adresi Yazin:
  2.     <input maxlength=”30name=”Email” size=”20type=”text” />
  3.  
  4.     <input name=”Send” value=”resim olustur” type=”submit” />
  5.     </form>

ve simdi resmimizi olusturacak olan funksiyonu olusturacagiz

PHP:
  1. <?php
  2.  
  3. header(“Content-type: image/png”);
  4.  
  5. $resim = imagecreate(150, 30);
  6. $arkaplan = imagecolorallocate($resim, 255, 255, 255);
  7. $yazirengi = imagecolorallocate($resim, 233, 14, 91);
  8. imagestring($resim, 2, 5, 5$_REQUEST[‘Email’], $yazirengi);
  9. imagepng($resim);
  10.  
  11. ?>

islem tamamlanmistir Denemek icin tiklayin

Favorilerinize Ekleyin.
  • BlinkList
  • del.icio.us
  • Digg
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blogmarks
  • Blue Dot
  • Furl
  • Netscape
  • NewsVine
  • Reddit
  • Shadows
  • Technorati
  • YahooMyWeb
  • Fark
  • feedmelinks
  • Fleck
  • kick.ie
  • LinkaGoGo
  • Linkter
  • MyShare
  • Spurl
  • Webride