Dear Users,

I basically want to do the following. I have  file that contains everyone
that logs into
our mail server a day and then I want to basically load that file into an
array and then
search the array to find out how many times that person logged in and then
the last login and capture that information from the file.

I have tried doing something like this but it doesn't seem to work:

$fcontents = file("/tmp/popper.test");

while (list ($line_num, $line) = each ($fcontents)) {
    $new_array[$line_num] = $line;

$key = array_search("",$new_array);
print count($new_array)." matches found.\n";

Can anyone shed some light to help me? I'm using PHP 4.1.0 :)

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to