Forum Moderators: coopster
Is it possible to do the same thing in php? If so, any existing libraries? Do I need to put any DLL for extending the PHP? (If not it's the best, because my site is hosted.)
Any other techniques for deterring malicious bots?
Thanks!
I've used these same functions to create weather buttons on-the-fly.. they work very well and are easy to use.
that should do the job even if it's alpha.
[sklar.com...]
PHP gives you a bunch of options for random-ish types of numbers; a tutorial for doing this would introduce you to random numbers, introduce you to gd, things like imagettftext, imageline, and imagerotate; it'd show you how to figure out some parameters for limiting possible results so your image is as human-readable as possible, and as machine-unreadable as possible, 3 different things really.
The CAPTCHA people have done quite some work in trying to figure out the last bit, and I'd assume that the package makes use of their work so you don't have to go reinventing the wheel.
In David Sklar's example code, the only thing that immediately sticks out to me as something you'll want to change is the font name. You'll want to have this font installed in the correct directory - the PEAR CAPTCHA class docs should tell you where that's supposed to be, or maybe they just assume a relative uri from the calling script.