www.webdeveloper.com
Results 1 to 2 of 2

Thread: captcha font

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    Question captcha font

    First of all i hope someone can help me i do not know about php so if you can help me i apreciate it a lot if someone can give me the correct code to be added for the blow things

    the below code is a captcha code i want to be able to set my own font how can i do this? and is it possible to turn this into a png image with transparancy background?



    PHP Code:
    <?php
    session_start
    ();
    //$text = rand(1000000,9999999); 
    $text rand(10000,99999);
    $_SESSION["vercode"] = $text;

    $height 17;
    $width 60;
     
    $image_p imagecreate($width$height);
    $black imagecolorallocate($image_p,243,247,250);
    $white imagecolorallocate($image_p000);
    $font_size 8;
     
    imagestring($image_p$font_size50$text$white);
    imagejpeg($image_pnull,100);

    ?>

  2. #2
    Join Date
    Mar 2011
    Posts
    1,148

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles