corecodeschool.blogspot.com: How to create a Captcha code in php

Enter Keyword Hear for Search This Blog

Showing posts with label How to create a Captcha code in php. Show all posts
Showing posts with label How to create a Captcha code in php. Show all posts

Monday, 15 February 2016

How to create a Captcha code in php


ex1.php


<?php 

    $a = "abcdefghijklmnopqrstuvwxyz0123456789                ABCDEFGHIJKLMNOPQRSTUVWXYZ";

    $str = " ";

    for ($i=1; $i <=6 ; $i++)
    { 
$str = $str.substr($a, rand(0,strlen($a)-1),1);
    }

echo $str;

?>


Featured post

Contact

Contact Core Code School Core Code School shares beginner-friendly tutorials on PHP, HTML, CSS, JavaScript, Java, SQL and Ubuntu. You can...