Trusting user input in PHP’s chmod: decimal vs. octal

The PHP manual on chmod has a subtle little warning about providing a decimal number instead of an octal when calling the chmod function: Mode is not automatically assumed to be an octal value, so to ensure the expected operation, you need to prefix mode with a zero (0). So what does this warning really […]

A Unique Identifier Hash for Hive LMS

So I got distracted but in a good way. I realized as I was coding up the login system for the LMS Project that I’m going to need some kind of ID (unique identifier hashing) for Hive and almost four hours later I have a working but extremely broken YouTube-esque unique identifier hashing algorithm.