Hey everyone,
I have two var's, lets call them $user and $pass (for a login) that I want to be written to a txt file(I know, I should use mysql, but there is a reason for the txt) Anyways, I want two lines in the txt file, one to define user, and one to define pass.
Now the reason I want this is for the verification on the login, which I need a little help. Is there a function I could look up that basically looks for a line in the txt file, then reads it(I know file_get_contents) so I can do a stristr on it. The thing is, I need it to read the pass line for one var, and the user for another, but not both, and everything needs to be seperated in the array so I can use the simple stristr to see if it exists.
Thanks guys 🙂