tracking hits and saving in new text files daily
Hi,
I have a web page where there are multiple hyperlinks
on that single page. Now I would want to track the
hits of user clicked on each hyperlink and insert this
data into a textfile. I would need to track hits of
multiple users and save them onto a textfile on the
server. Each day the server would have one text file
incremented. Like reportlog.ddmmyy.txt, and next day
reportlog.ddmmyy with dd increment as long as it is
same month. After that month increment.after that year
increment.
example: reportlog.09072004.txt
next day reportlog.09082004.txt.
And each text file would have multiple rows for each count hit.
Later I would run batch job to move the data from text
file to database.
But now I want code to count hits and send the data
into text file. Each day multiple rows would get
incremented in text file. Later I would move this data into database table.
I would appreciate any help on this.
Thanks in advance.
|