开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜