Re: reading linux wtmp file

From: Date: Wed, 15 Oct 2003 04:25:13 +0000
Subject: Re: reading linux wtmp file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166160@lists.php.net to get a copy of this message
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

« previous php.general (#166160) next »