various PHP coding I have used for past projects