Create a blog from scratch with PHP
These files accompany the tutorial: Creating a blog from scratch with PHP - Part 5 Sidebar, Categories and Archives