Join me as I embark on a deep dive down the PHP migration rabbit hole. This will be a multi-part series as I upgrade a horrifyingly long list of legacy websites and applications from v5.6 to 7.2.
Part 1: My mess in brief. Navigate: Next (Part 2).
Continue reading “PHP 5.6 to 7.2 Rabbit Hole: Part 1”
There are a surprising number of PHP and web development podcasts available to us, which is a great sign of the language’s popularity and passionate developers. Podcasts are nice because they allow us to keep current and learn while on the go. My preference is listening to them while doing chores, turning otherwise boring time into a chance to improve my technical knowledge. Over the last year I’ve listened to several podcasts specifically about PHP and web development, and here are the ones I’ve been following: Continue reading “PHP Podcast Picks”
Fun little story. My host recently contacted everyone to tell us that the PHP 7 version on the servers which were recently upgraded to 7.2 (5.6 is also available and is still the default) was rolled back to 7.1. Apparently a lot of sites were breaking including WordPress plugins, Magento and others. Continue reading “PHP 7.2 Rollback”
I maintain and work on a number of legacy code applications. One of them has earned itself some refactoring. So I’ll try to share some of the changes I’ve been making to improve it. Today, a problem that’s bothered me for a while: the DB class connects to the database even if no queries are being used.
I should be thankful that this legacy app doesn’t have a bunch of mysqli_* calls all over the place. Back when I wrote it I at least had the presence of mind to wrap SQL functions in an abstraction class. So this change was quite easy to make.
Continue reading “Bite Sized Code Refactoring – Redundant DB Connections”
Among the awesome improvements brought to us by PHP7, comes type hinting. An addition to PHP which might be controversial among developers who love PHP’s dynamic typing. PHP isn’t losing its flexibility. On the contrary, we are now gaining yet another way to express our intentions in our code. Continue reading “PHP7 Type Hinting And Docblocks”