Building a Secure Website from Scratch

If there’s one thing I don’t like to do, it’s this: building any kind of website from scratch, especially when I have to design it as well. I’ve done exactly that, however, against my own wants on more than one occasion. Unfortunately, it’s something required when I’m trying to make a point or when I’m trying to teach a technique or two. My latest project requires it, as I’ll explain. The reason I’ve put off other projects, like a simple forum is that part of that project requires me to finish this project first. Read more »

Check for an Odd or Even Number in PHP

I’m not going to bother you with mathematics. I’m just going to present two functions that can be used within your PHP scripts to determine whether a number is odd or even. There are more reasons than one to know when a number is odd or even, and more than one way to determine it, but using functions makes it easier to do it when you’re traversing an array. Read more »

Website Registration Made Easy

Website registration shouldn’t be difficult and it isn’t if you keep it as simple as possible. If you’re not using SSL, you have to keep in mind that a malicious hacker could be sniffing packets and can capture anything sent at registration time. For this reason and this reason alone, you should never allow passwords or challenge/response sequences to be set during the initial registration process. Read more »