[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Beginner PHP Tutorial – 167 – Creating Captcha Image Security Part 4
by
Tags:
Comments
21 responses to “Beginner PHP Tutorial – 167 – Creating Captcha Image Security Part 4”
-
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 pathNumbers 2 and 3 solved my problems
-
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?
-
Anyone else got an error: Notice: Undefined index: secure in C:xampphtdocs
-
Whats the advantage of starting sessions over require or include
-
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…
-
great work
-
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?
-
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?
-
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….}
-
see the phpinfo.php
if not there gd , you can not crate this , sorry for my english bro :)) -
put some 3 variables for rand from 0 to 255 and replace them with text color coordinates and its funky time 😀
-
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… :/ -
this also not working.comparison is not working.
-
thanksssssssss …. that was it 😀
-
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
-
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
-
How can you move the captha around using css?
-
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.
-
thanks man it workEd
-
Things are gettin cleaver.
-
how do you combine this code to work for the contact form from the tutorials?
Leave a Reply