Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Self-Documenting Code, Encoder, and a CC Class
Apr 17, 2002 @ 12:13:03

First off this morning, DevShed.com has a new aricle for those out there that are like me - I hate to document my code. I know how it works, and that's what matters, right? (actually, I think this is pretty much universal among programmers). Well, your day has arrived, as this article explains. By using the PHPDoc software, you can turn those boring little comments that you make in your scripts into API documentation. In Writing Self-Documenting PHP Code, they show you the style of the content that the PHPDoc software looks for, and a detailed look at how you can use these in your comments. The output that it turns out really looks pretty nice and could be used as an official documentation if you needed it. Now, if I could just find something to write the PHPDoc formatted comments for me, I'd be all set...

Also new this morning is a little piece on Builder.com about the newest Zend product, the Zend Encoder 2.0. Basically, it's claim to fame is that it protects and encodes your PHP files so that no one can read them (unlike others that just obfusicate it). This article gives a little mini-review of the authors trial with this software, and it seems he was pretty pleased. (Note: you might need to go here to get to it. screwy sessions)

No, it's not a class that helps you write emails with a "Cc:" line - in the latest article from SitePoint, they show you how to make a class that validates credit cards on the fly. Now, keep in mind, this isn't proof that they aren't stolen or anything like that. It uses the mod10 algorithm to make sure that the number that they enter is really a credit card number and not just something they made up. They show you exactly how this all works and they give you a neat class at the end that wraps it all up and can validate MasterCards, Visa, Amex, Discover, Diners Club and even JCB.

tagged:

Link:


Trending Topics: