I have just succesfully installed PHP and need one script @ work. No idea
how to do that and I have to have it about in two weeks. :) So please help!
Anyways I want to parse some words from log file and then output the line
wich contains this words. Simple script I think.

Log file format:

Mon Aug 2 20:38.50 2004 - LOGIN: John.Doe from public IP xxx.xxx.xxx.xxx
Mon Aug 2 20:48.31 2004 - LOGOUT: John.Doe from public IP xxx.xxx.xxx.xxx
Mon Aug 2 20:48.47 2004 - LOGIN: Joe.Smith from public IP xxx.xxx.xxx.xxx
Mon Aug 2 20:49.15 2004 - LOGOUT: Joe.Smith from public IP xxx.xxx.xxx.xxx


So if I want in one html page call it login.html showing all the logins how
do I to that? Same to logout.
There could also be page showing only the IP addresses. And extra thing is
login time. Simple math time=logout-login=x, but also no idea how to do
that, if that is even possible. Maybe you have to parse first the IP lines
of specific user and output of those lines you can make logout-login=login
time function..

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to