开发者

looking for a quick and light storage solution for php - simpleXML?

开发者 https://www.devze.com 2023-03-06 05:45 出处:网络
i want to use simplexml & a webform to capture some simple information but i\'m worried that if someone submits the form at precisely the same moment i might lose some data.

i want to use simplexml & a webform to capture some simple information but i'm worried that if someone submits the form at precisely the same moment i might lose some data.

how can i ensure this doesn't happ开发者_运维技巧en?


If you don't mind those users waiting for eachother you could implement a simple lock using flock. Anything more complex will require a database of some sorts to ensure atomicity.

0

精彩评论

暂无评论...
验证码 换一张
取 消