Are you wanting to create something like a log file of that information for each person that visits the page? And end up with a text file something like?
time, ip, agent
time, ip, agent
time, ip, agent
time, ip, agent
time, ip, agent
time, ip, agent
time, ip, agent