Version Control for Individuals

By Josh Sherman
4 min read
development
version control system
github
gitlab

I find with a lot of folks I interact with, version control is considered something that you use when you are working on a team with multiple contributors. As an individual that is usually the sole contributor of my own projects, I have to disagree as version control is still […]

New Lines in Command-line PHP Output

By Josh Sherman
1 min read
development
php
command-line

If you’ve ever worked with command-line PHP and outputted text you know that PHP takes absolutely no liberties with injecting line breaks into the output. There’s also no magic function or configuration variable that will adjust this behavior. Easy enough, you want line breaks, just add them! echo "I am […]

How to Output Strings in PHP

By Josh Sherman
2 min read
development
php

Outputting strings is one of the most common actions when building a web site, and PHP offers a multitude of ways to do so each with their own set of strengths and weaknesses print print is a language construct and not a function, so you don’t need any parenthesis to […]

How to Capture User Input from Command-line PHP

By Josh Sherman
1 min read
development
php
command-line

When using command-line PHP capturing input is a bit different than when building a web application. Instead of building a form and interrogating some variables, you have to actually prompt the user for the input and then analyze it to determine if what the user input was what you were […]

The Importance of a Logout Page

By Josh Sherman
2 min read
development
advertising

Running social networks have proven eye opening in regard to how users interact with a website. One thing that I’ve noticed that I didn’t necessarily expect is that quite a few people click the logout button. Perhaps it’s because they have more than one account (tsk tsk as we don’t […]