Skip to content Skip to sidebar Skip to footer

My Captcha Image Not Showing On My Page When The Captcha.php Is Called

i am trying to create my own captcha on my page for log in but this php code won't display my captcha image on my web page. so any suggetion will be good. this is my captcha.php

Solution 1:

There is definitely some problem with your ttf font. Try using another font file or either the font size is too large or too small. I tested your script with another font Akashi.ttf and it works flawlessly. Here is the screen capture:

Screenshot

Solution 2:

try this

<imgsrc="<?='captcha.php'; ?>">

or

<imgsrc="<?phpecho'captcha.php'; ?>">

Post a Comment for "My Captcha Image Not Showing On My Page When The Captcha.php Is Called"