Hi there people of WebmasterWorld,
In a config file I have this sort of setup:-
$users['0']['UserPass'] = "phpdotnet";
and this is part of a multi dimensional array, my question is, how would I open this file, find this line (or similar depending on what index/UserPass was being supplied from the cookie I have set..) and then alter/change the value that is being assigned to it, before saving that data back to the file so that if I opened it, I could only see the value changing?
I guess as you could do a combination of preg_match()/Str_replce() with the entire line, but dynamically alter the data
between the quotes, but in truth, I am drawing a blank on this, and to be perfectly honest I don't want to open this file manually to do this.
I am sure as this can be done, just not sure how...
Thoughts please!
Cheers,
MRb