function search_password(){
$file = "username_passwords_record.txt";
$record_rows = file($file); //file — Reads entire file into an array
foreach ($record_rows as $value) {
$explode_values = explode(",",$value);
echo $explode_values[0] . $explode_values[1] . $explode_values[2] . $explode_values[3]. $explode_values[4] . "<br/>";
}
}
search_password();
i have a text file to store some records with
Fields: Ip,date,email,username,encrypted password
test values in text file : username_passwords_record.txt
127.0.0.1,08.03.10,no-reply@google.com,Google Analytics,MjJvbWxramhpZ24yOGRiZWZhYzg5
127.0.0.1,08.03.10,store-news@amazon.com,Amazon store,MjVvbmhtaWdqa2wzMGNmZGJlYTI5
127.0.0.1,06.03.10,niketown@yahoo.com,kill hill,MzdsbWluZ29qaGs2M2NhZGJlZjYz
127.0.0.1,08.03.10,simon@robertlane.com.au,Simon Hutton ,NDZrbGdtaGppbm82NWRmYWNlYjUy
127.0.0.1,08.03.10,used-support@carsales.com.au,carsales,NDNpa2xubW9namg1NGFiZmRjZTY2
i wanna be able to scan and compare any of these fields, with the value the user has entered, to check if they match...
any help would be great thanks
Lee Harvey