In article 
<[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> I'm very new to PHP.
> I want to display /var/log/lastlog with php on a webpage, but I need
> some help. How do I do that?
> Looking at the docs it looks like file() would work, but I couldn't get
> it to display the file.
> Carlton.
>  
>  
> 
lastlog isn't actually a text file. You'ld need to use the lastlog program 
to parse it for you and then output the result.

Having said that, I wonder if you are really looking for the output of 
last (driven from wtmp) which will give you a complete login history, 
rather than the info available from lastlog?

Cheers
-- 
Quod subigo farinam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

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

Reply via email to