I'm trying to make a rather simple script and somehow can't figure out how to do this.. fopen() has always confused me, I've posted about that a few times before.
Anyways, here's what I want to do...
1) open a file, users.txt, that contains a group of usernames/passwords in a CSV (comma seperated values) format.
-EXAMPLE:-
joeuser,joepass
bobuser,bobpass
2) store those in an array (i guess...)
3) Check and see if the variables $username and $password match a combination in the file
I was also thinking if a for() loop that creates an array for every line in the file would work better.
And yes, I do know that this way of doing things in extremely non-secure, and it's fine for now. It's just test-users, that are all me, with non-important passwords.
Any help would be greatly appriciated!