added some older PHP code from college, code for (sort of) ongoing blog project