General purpose PHP code to share with friends.