How to calculate Thanksgiving's date with PHP

By Josh Sherman
2 min read
development
php

The topic of this post ended up turning into quite the programming exercise for me. In true PHP fashion, I was able to come up with 3 distinct methods to determine what date Thanksgiving falls on (and have another in mind but it’s just a crappier version of what I’m […]

My Experience with Wizpert

By Josh Sherman
6 min read
reviews

For those that aren’t familiar, Wizpert is a platform for chatting with people (Skype, Gtalk and their site) that are experts (referred to as “wizperts”) of specific topics. Earlier in the year I was sent a beta invite to become a wizpert in the category of PHP. I’m not a […]

How to convert a negative number to a positive number with PHP

By Josh Sherman
1 min read
development
php

Converting a number from negative to positive is a pretty simple process using the absolute function abs(): $positive = abs(-123); // = 123 $position = abs(123); // also = 123 Absolute returns a positive integer or float based on what you feed it. Because it only ever returns a positive […]

DirectNIC may have been compromised

By Josh Sherman
1 min read
security

Didn’t see any news about it this AM but it seems that DirectNIC may have been compromised. My wife just spoke with Bank of America regarding fraudulent activity on her credit card. According to the person she spoke with, DirectNIC had been compromised and there was a ping against her […]

PHP's HereDoc versus NowDoc

By Josh Sherman
1 min read
development
php

We’ve previously discussed how to assign variables and add in variables and all of that good stuff, but what about if you are dealing with a large block of text? There’s many approaches, most that require you to be mindful of escaping characters like simply using quotes to wrap a […]