Installing PHP Redis - A PHP Extension for Redis

By Josh Sherman
2 min read
development
php
redis

Redis is one of my favorite new data stores of the NoSQL movement. It has the power and speed to act as a caching server like Memcached and it has more advanced data types to make it more like an RDBMS. Before we can talk about using Redis as a […]

Calculate Age from Date with PHP

By Josh Sherman
3 min read
development
php

Calculating the age based on a date is a pretty simple task that can be accomplished many different ways (Google yield’s quite a few different approaches). The caveat that usually arises is that you need to factor in which side of the birthday you are on based on the day’s […]

Apple iOS 7 Beta Review

By Josh Sherman
9 min read
reviews
apple
ios

Like many people, I went ahead and upgraded my phone to the Developer Preview of Apple’s latest iOS, version 7. Days later, I’m wondering if I will be downgrading next week because of a handful of issues that I would consider to be critical defects for my own usage. It’s […]

Configuring PHP Sessions

By Josh Sherman
2 min read
development
php

Now that we know how to use sessions and have built a simple login system, let’s take a look at some options for configuring PHP sessions. Out of the box, PHP is configured to file-based sessions with a max lifetime of 1440 seconds (a mere 24 minutes). Garbage collection probability […]

PHP Login System

By Josh Sherman
5 min read
development
php
security

Following up on yesterday’s introduction to PHP Sessions, let’s talk about building a simple login system in PHP. To start, you will need to make sure that pages on your site that are behind the login page will have sessions enabled. This can be done for all of your pages […]