Basic HTTP Authentication with PHP

By Josh Sherman
1 min read
development
php
security

Basic HTTP Authentication is easily accomplished at the web server level (by way of .htaccess with Apache or inside your nginx configuration file) but did you know you could pull it off inside of a PHP script? You bet your butt you can! First, you will need to interrogate the […]

Making time for side projects

By Josh Sherman
5 min read
development
productivity
time management
inspiration

I’m absolutely sick and tired of hearing people complain about not having any time for their side projects. Even worse is when I get asked the seemingly presumptive “how do you find for side projects when you have a family?” Rarely does that question get asked without a tone that […]

Life of Pi - Working with Pi in PHP

By Josh Sherman
1 min read
development
php

The irrational mathematical constant of Pi can be obtained a few different ways in PHP. There is a function to give you the value as well as a bunch of constants that represent Pi as well as fractions of Pi and it’s square root. Heck, you could even do it […]

How to replace a string with a string in PHP

By Josh Sherman
2 min read
development
php

String replacements in PHP are very simple and as per usual, can be done in a variety of different ways. First let’s take a look at the most simple form of a string replacement: str_replace('blue', 'red', 'My favorite color is blue'); The first argument is the string you want to […]

Developer titles are bullshit, Part 2 - Universal titles

By Josh Sherman
6 min read
development
career

Last week in part one, I discussed the lifecycle of a developer that just started a new job. The gist was that when someone starts a new role at a company, they generally have to learn the lay of the land. Regardless of their technical prowess there is always a […]