Getting PHP's version from the command-line

By Josh Sherman
1 min read
development
php
cli

As you may already know, obtaining the version number of PHP is a simple php --version away. This is great if you just want to see the version number, but what if you wanted just the version number? First option would be to use write out some shell script to […]

That time I got ripped off on Flippa

By Josh Sherman
8 min read
reviews

In my defense, I’m a grown ass man and I knew exactly what I was doing. I was really intrigued by all of the “automated websites” that Flippa is overrun with and figured I’d set myself a very modest budget of 250$ and see what trouble I could get myself […]

How to error when setting undefined class properties in PHP

By Josh Sherman
2 min read
development
php

Perhaps you have a class and you absolutely don’t want anyone tacking new properties onto it once it’s been instantiated. To do so, you can use PHP’s overloading to catch the setting of a variable and raise an error accordingly. Here is the default behavior where an object can have […]

Bake your fees in, don’t line item them

By Josh Sherman
6 min read
personal finance

As a business owner, I understand that there are fees associated with running a business. There’s always a cost to doing business and those costs can generally be written off at the end of the year. Those costs are yours and in my opinion don’t always need to be revealed […]

What transferring a domain to a new registrar entails

By Josh Sherman
3 min read
development

With my recent trials and tribulations with DirectNIC and my now exodus to NameSilo I’ve been asked a couple of times of how difficult a domain transfer is and what it entails. Before I discuss the steps to transfer a domain, I’d like to note that I will be posting […]