In this tutorial I will show you how you can create a small and simple PHP script to log your visitors activity into a file. You just need to add 1 line to each of your page to enable logging and the statistics will be collected in a html file so you don't have to setup any database for this task.