View Single Post
Old 09-24-2009, 07:43 AM   #1 (permalink)
ChrisR
The Wanderer
 
Join Date: Dec 2008
Posts: 16
Thanks: 2
ChrisR is on a distinguished road
Default writing to files

Hello,

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)
ChrisR is offline  
Reply With Quote