Generate Captcha in PHP
Вставка
- Опубліковано 19 вер 2024
- Request a Video Tutorial here:
www.youtube.co...
Source Code:
www.myphpnotes...
Learn about Composer:
• Composer Explained
Learn about Virtual Hosts:
• Virtual Hosts Explained
Brought to you by
www.myphpnotes.tk
For those who can't get the text to show on the image. Change line 30 in captcha.php to "$font= "./font.ttf"; (notice the ./ infront of the file name)
Hi there I tried following you advice but It' s not working for me I keep having this error: get error: "The image urlexample.com/captcha" cannot be displayed because it contains errors
Thanks for your respone ! I solved this problem with your comment ! Thanks so much !
this is great, just like your other videos. thank you. keep up the good work!
Thanks for appreciating our efforts. :)
excuse me!! i dont know why it doesnt show image in captcha.php ?
hi..why the image doesn't show..?
Thanks a lot , so helpful for me :)
You are welcome!
There's problem with Carving text into the image;
I changed 2 lines of code to;
$text_color = imagecolorallocate($image, 255, 255, 255);
imagestring($image, 25, 225, 130, $captcha , $text_color);
And it worked for me.
Cheers.
Great. 👍👍
great job
I get error: "The image urlexample.com/captcha" cannot be displayed because it contains errors
Code is not opening
showing error in line 16 "call to undefined function image create"??
Hello Sagar,
Please provide more information regarding your problem.
Same error for create image
Hi good tutorial but i have an error your captcha is bad i don’t show the captcha
Exception.
myPHPnotes but all the new comment say « i don’t show the captcha »
image is not create it is showing error
If you downloaded the source code myPHPnotes kindly supplied, try checking the opening form tag is closed.