A PHP Developer's Blog - Joakim Nygård

About jokke.dk

jokke.dk is the personal website of , a software architect, entrepeneur and Mac user living in Copenhagen, Denmark.

Search the Site

Recent Posts

Popular Posts

An ASCII CAPTCHA

29th November, 2005

I've been thinking about how to avoid formbots here since they've begun spamming the comments. The obvious solution is Captcha (tEABAG_3D is a pretty amazing implementation). Below is a _very_ rudimentary ascii captcha generator I wrote to avoid having to use GD or ImageMagick - a request that came up recently on #php.

Click to see another.
I will eventually implement it here and - if it is successful - put it online for download as a PHP class.

EDIT: Apparently the reload-link didn't work in Firefox. It does now after enclosing the javascript in an eval().

« Oooh, the wonders of video  –  Exams... »