php code dump from tutorials and stuff