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 […]

Hive LMS: Solving bugs I didn’t know I had!

This has been a very eventful week and a very successful one as far as my programming career goes. Besides the post I put up a few days ago, Hive LMS: Knowing when it’s time to toss code out!, I also stumbled on to a bug that turned out not to be a bug and figured […]