PHP segmentation faulting from logging too much

By Josh Sherman
5 min read
development
php

At least I think that’s what was happening. Today I made the somewhat calculated risk of upgrading my production server from PHP 5.3.10 to PHP 5.5.7. Scary stuff, jumping 2 point revisions like that but I was feeling cocky after jumping 3 point revisions to bring nginx up to the […]

Lessons learned from sending thank you cards to my users

By Josh Sherman
4 min read
scenekids
retrospection

I wanted to do something nice this holiday season and decided to identify some of my power users on SceneKids.com and mail them Christmas cards and some SK stickers. The users I had selected were a mix of users that have been on the site since it launched in 2011 […]

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