Ok, so only one is really new; the other is heavily revised from its original state.
- Hit Tracking with PHP and MySQL demonstrates how to build your own simple tracking code, using PHP and MySQL. Relevant in the light of the recent SiteMeter outage
Geographic IP database using PERL, PHP and MySQL allows you to build your own geographic IP database using freely available data**
Have fun with them; any feedback is greatly appreciated.
[**] I have removed this article due to the traffic it was generating.