open/read/write to FLAT file - question
Posted: Wed Sep 20, 2006 2:26 pm
i use Flat file = pure txt file, to write some content in it...
everithing ok...though i have a question...
hipotetycli it's possible to hapen...
2 poeple 100% the same time push the "submit" button...
it is posible that the txt file gets empty....
can i prohibit this?
i have read about " Race condition (or race hazard)" and i alsow know i could solve this with "sem_acquire" but this funcion is not instaled on the server of my hosting provider...
so...
is there an alternative? mySQL or any other base is NOT an option!
HELP?!
p.s: sorry 4 bad english
everithing ok...though i have a question...
hipotetycli it's possible to hapen...
2 poeple 100% the same time push the "submit" button...
it is posible that the txt file gets empty....
can i prohibit this?
i have read about " Race condition (or race hazard)" and i alsow know i could solve this with "sem_acquire" but this funcion is not instaled on the server of my hosting provider...
so...
is there an alternative? mySQL or any other base is NOT an option!
HELP?!
p.s: sorry 4 bad english