Downloads / Scripts
Visual and Audio CAPTCHA class
PhpCaptcha is a library for generating visual and audio CAPTCHAs (completely automated public Turing test to tell computers and humans apart). You can read more about CAPTCHAs at Wikipedia.
It can help you to prevent/reduce:
- Automated sign-ups in registration forms.
- Comment spam in blogs and guestbooks.
- Brute force attacks on login systems.
The library is loosely based on an article I wrote for SitePoint on 9th November 2005 - Toughen Forms' Security with an Image.
Supported Features
- Multiple random TrueType fonts
- Character rotation
- Optional chararacter shadow support
- Optional site owner display text
- Random custom background images
- Font size selection
- Greyscale or colour lines and characters
- Character set selection
- Integration of validation function for checking the user entered code with the generated code
More Information
Click here for documentation, examples and to download the code.
PhpDelicious
PhpDelicious is a class for accessing the del.icio.us API.
Supported Features
- Viewing (all, by tag, by date etc), adding and deleting posts
- Managing tags
- Managing bundles
- Viewing the last time your account was updated
It includes a configurable caching mechanism to prevent unneccessary additional calls to the API and automatically adds a delay between API calls where neccessary to prevent your account being throttled (receiving 503 errors).
More Information
Click here for more information and to download the class.
PhpCache
PhpCache is a simple PHP class for, you've guessed it, caching arbitrary data. Cached information is stored in files in a temporary directory. File locks prevent simutaneous write attempts.
<?php// key and cache length (in seconds)$oCache = new Cache('content_key_here', 300);// check for cached copyif (!$oCache->Check()) {// no cached copy - generate data// save to cache$oCache->Set($aNewData);}// retrieve data from cache$aData = $oCache->Get();?>
More Information
Download the PhpCache class here.
Email Validation Class
This class provides comprehensive validation of e-mail addresses including MX record lookup, mail server connection test and correction of mis-spelt domain names. It's still experimental so go easy on it if it doesn't behave exactly how you expect. ;-)
More Information
Unobtrusive click tracking with a splash of DOM scripting
This blog post explains how to implement unobtrusive link tracking on your site. It uses JavaScript and DOM methods to rewrite all URLs on your site on-the-fly and only requires you to add one line of code to your HTML to implement across your site. An improved/alternative version of this click-tracking is available in a later blog post as well as a corresponding link reporting script in this blog post.
Subscribe
Connect/Save
I am ejeliot on del.icio.us.Add me to your network.
Recent Posts
- Unix Permissions Calculator Released (3)
- Favicon Generator & Editor Released (4)
- Inbound Link Analyser - a tool for analysing links to your site (11)
- Vote for my SXSW 2009 panel proposal (0)
- Source code for version 2 of CSS Sprite Generator (6)
- Version 2 of CSS Sprite Generator released (1)
- Opera releases Dragonfly for Opera 9.5 beta 2 (1)
- Mobile Browser Concurrency Test (0)
- Problems building MySQLdb on Mac OS X 10.4 (Power PC) (1)
- Automatic versioning of CSS, JavaScript and Images (9)
Last 12 Months
- March 2009 (1)
- February 2009 (1)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
- May 2008 (1)
- April 2008 (3)
- March 2008 (1)
- January 2008 (2)
- December 2007 (3)
- November 2007 (2)