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

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

21 responses to “Beginner PHP Tutorial – 167 – Creating Captcha Image Security Part 4”

  1. Bernardo Peters Avatar

    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. The Whoopz Avatar

    Great tutorial! Everything works for the desktop-version of my site. But for mobile i need to change the sizes (image_width & image-height etc.) How do i do this?

  3. Ankaboot Avatar

    Anyone else got an error: Notice: Undefined index: secure in C:xampphtdocs

  4. zeryab hassan Kiani Avatar

    Whats the advantage of starting sessions over require or include

  5. No_Name Avatar

    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…

  6. gfewjf Avatar

    evreything works except the image.. how i still get that broke image sign.. i've put the session_start(); in it still doesnt work any help please?

  7. ernestmagnifico Avatar

    Great tutorial. But how does it actually get put into a contact form? So there is just one submit button for the whole form and the user data is not erased? Anyone?

  8. John Anderson Avatar

    can you show how to add that echo to my login to verify the captcha then to send the account info which is = $login etc…. {because i realy got confused….}

  9. moamer aziz Avatar

    see the phpinfo.php
    if not there gd , you can not crate this , sorry for my english bro :))

  10. Alex Iljievski Avatar

    put some 3 variables for rand from 0 to 255 and replace them with text color coordinates and its funky time 😀

  11. Jorge Santos Avatar

    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… :/

  12. BaliLandandVilla Avatar

    this also not working.comparison is not working.

  13. babak hosseini Avatar

    thanksssssssss …. that was it 😀

  14. babak hosseini Avatar

    hi, i have a problem: the captcha works perfectly on my localhost but when i upload it to my website the numbers wont show up….. why is that can anyone help me

  15. SmithsRichard Avatar

    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

  16. EpizCo Avatar

    How can you move the captha around using css?

  17. TheCrookHook Avatar

    This is good but … Not very efficient if the user fills out a large email and the form erases it due to the post if the captcha is incorrect.

  18. Rahil Wazir Avatar

    thanks man it workEd

  19. jake justice Avatar

    Things are gettin cleaver.

  20. Patrick Hull Avatar

    how do you combine this code to work for the contact form from the tutorials?

Leave a Reply

Your email address will not be published. Required fields are marked *