PHP Tutorial: Protect your Website with CAPTCHA: Create your own: Part 1
Learn how to protect your website from crawlers and SPAM robots. Create your own CAPTCHA using the PHP GD library. The Font used in this tutorial is called Anonymous Clippings and was obtained at dafont.com
In this part we create the captcha class and declare all the static methods that we will be using. Also the font file was base64 encoded and was assigned to a variable in order to embed the font into the PHP file. This will make the captcha class portable.