You could use a php script, or just download your RAW access logs from your hosts control panel, if it is offered
to do that you would have to use MySQL or another database. Try http://inobscuro.com/tutorials/read/30/ I can write one for you if that dose not work