@bokehAug 15.2005 — #If you must use a flatfile database I think it would be best to write a separate file for each user. The reason is if your users.txt were ever to be corrupted you would be in big trouble and the second reason is the individual file would be much more manageable. You could put all the data in one row and delimit it with commas or some other punctuation.
So to sum up the file could be named 'username.txt' and contain:
All you would need to do is: [code=php]$keys = array( 'coded_password', 'First name', 'Middle name', 'Surname', 'House number/Name', 'Road name', 'Town,County', 'Country', 'Telephone_Number', 'Mobile','Fax numbers', 'e-mail' ); $user = file_get_contents($username.'.txt'); $user = explode(',' $details);
@bokehAug 15.2005 — #Each user's info would be in their user file not elsewhere so password would be the first field. As stated earlier keeping this info in one single file is dangerous for the point of view of being corrupted.
As for the user file you could either lay it out on one line and delimit with, for example, commas or you could put each item on a new line.
I could just create a table and in the applicable TD's just put:[/QUOTE] yes.
Editing the details would be easy (but not as easy as with mysql) just open the text file read the details, edit as required and then overwrite the file.
Lastly all that code I posted was a way to access a user file but nothing more.