Hi,

Wednesday, October 15, 2003, 10:52:43 AM, you wrote:
MPC> Hi to all,

MPC> Have a problem here in reading the file wtmp in linux. Is there a way I can
MPC> view it using a php script?

MPC> Thanks in advance.


MPC> Mike


wtmp is a binary file and the format can vary between old and new versions of
linux. You will need to have a look at struct utmp in, for example, 
/usr/include/bits/utmp.h
This location can vary from system to system as well.

NOTE do not meddle with the wtmp file by opening it in anything other than
readonly mode as all kinds of nasty things can happen if that file gets
corrupted.

-- 
regards,
Tom

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

Reply via email to