MySQL and Redis Command Equivalents

By Josh Sherman
7 min read
development
mysql
redis

Score another one for HitTail as this particular topic was their suggestion. MySQL (PostgreSQL, SQL Server, SQLite or any other RDBMS I didn’t list) and Redis are completely different beasts in regard to syntax and especially schema design (or lack there of). The following are just some common SQL statements […]

Calculating page load time / execution time with PHP

By Josh Sherman
1 min read
development
php

So who remembers back in the day when one of the coolest things you could have on your website’s footer was the page load time? As passé as that may seem in this day in age, it’s still something that can be useful when attempting to profile a site or […]

Check if PHP is running from the command-line

By Josh Sherman
1 min read
development
php
cli

When running PHP from the command-line interface, the availability of some variables and functionality may or may not be available. Case in point, when running command-line PHP sessions are not available and $_SESSION is undefined. When you’re on the command-line there’s also the possibility that you want to use the […]

Check if a PHP class exists

By Josh Sherman
1 min read
development
php

We’ve discussed how to check if a class has a function but what if the class doesn’t exist at all? To check if a class exists you can use, use guessed it, class_exists(). if (class_exists('MyClass')) { $object = new MyClass(); } else { throw new Exception('The class MyClass does not […]

WPEngine Review

By Josh Sherman
6 min read
reviews
wordpress
development
php
wpengine

Now that I’m back on the WordPress bandwagon and have been using WPEngine for a bit of time now, it’s time to talk about it. As previously discussed, I opted to use a hosted WordPress solution because of my utter disdain for administering WordPress. When researching WordPress hosts, I got […]