Чтение и запись в файл.

флоппик

promotor fidei
Команда форума
Партнер клуба
file_put_contents() will cause concurrency problems - that is, it doesn't write files atomically (in a single operation), which sometimes means that one php script will be able to, for example, read a file before another script is done writing that file completely.
 

fixxxer

К.О.
Партнер клуба
Не, лочить file_put_contents научился давно, не надо читать русские переводы манов, они сосут. Но тов. Nicholas я бы посоветовал воздержаться от раздавания своих советов на форуме, ибо все они ужасно непедагогичны и идеальны для тупого копипаста.

-~{}~ 23.09.08 10:22:

>>file_put_contents() will cause concurrency problems - that is, it doesn't write files atomically (in a single operation), which sometimes means that one php script will be able to, for example, read a file before another script is done writing that file completely.

а в этом коменте кусок кода вообще издевательски фееричен. если это правда из смарти, то его кажется, пишут идиоты.
 
Сверху