I would like to ask about XML and writing to files.
I am making a small database layer that uses .xml files, and was going to update them using put_file_contents().
Then i thought what happens if like 50 people are submitting something like a comment to a post, would it hit the issue of not all the comment been posted? As file_put_content rewrites the files right?
What would be the best why around this. So a lot of people can post stuff and the edit to the file will insert and not have issues. (i want to use this idea of flat file database using xml as mysql is not an option for me)