Beginner PHP Tutorial – 167 – Creating Captcha Image Security Part 4



Join our community below for all the latest videos and tutorials!

Website – https://thenewboston.com/
Discord – https://discord.gg/thenewboston
GitHub – https://github.com/thenewboston-developers
Reddit – https://www.reddit.com/r/thenewboston/
LinkedIn – https://www.linkedin.com/company/thenewbostoncoin/
Facebook – https://www.facebook.com/thenewbostoncoin/
Twitter – https://twitter.com/thenewboston_og
Instagram – https://www.instagram.com/thenewbostoncoin/
Twitch -…

Related Posts

19 Comments

  1. For those who are having problems with the code:
    1) check if the GD and freetype libraries are installed
    2) check if the callie hand .ttf file have numbers! The ones that I found only include letters so I decided to download another font
    3) in the imagettftext function, include './' in the beginning of the font path

    Numbers 2 and 3 solved my problems

  2. for($x=0;$x<4;$x++){
    $z=rand(-2,2);
    imagettftext($image,$font_size,20*$z,40*($x+1),40+$z,$text_color,'font.ttf',substr($text,$x,1));

    }

    This way captcha looks cooler…

  3. can u help me? and u make a video like this, and send me a link, but what i need is, a captcha with nub/let, and when u hit, he just refresh page with an image that i want
    my problem is, when i type : <mg src="generate.php" br
    it ill try to looking for a webpage of my website, it doesnt create… :/

  4. Even if you type the right captcha, it should change it, because assume you are sending a message through contact form, then that bot will only have to make it correct one time and then it can easily send multiple messages and spam our inbox

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress