This is the article and code zipped for your ofline pleasure. The zip contains.
1...Credit card security.htm (The above doc)
2...CreditCardCls.inc (the ASP class the above routines are from)
3...cc.php (the PHP LUHN checking algorithm)
4...cards.ini (the ini file for card types show in the article above)