PHP Forms Worst Practices (at least, not “best” practices)

Several web pages came up when I searched for PHP forms best practices. I figured that the techniques, today, would be have improved.

They hadn’t.

In fact, the Bing search engine turned up pages that I thought described some bad practices.

Continue reading PHP Forms Worst Practices (at least, not “best” practices)

Refactoring as Part of Porting PHP4 to PHP7

I’m writing this pretty late, after a night of coding.

The LA IMC software port went kind of okay, but also kind of screwed up. There are a bunch of bugs popping up, but that was expected.

The first bug was simple: some of the code was still using the old classes, and some of the code was using the new classes. I had to search through the code to find out why this was happening, mainly by looking at the code.
Continue reading Refactoring as Part of Porting PHP4 to PHP7

PHP Namespaces and Autoloaders, Reviewed

Several years ago, I wrote an article about this, and it was really a mess, but the PHP community understanding about autoloaders and namespaces was a lot worse than it is today. This article attempts to amend and supercede the original, and explain the magic.

Continue reading PHP Namespaces and Autoloaders, Reviewed