Atomic File Replacement in PHP - Let Readers See the Old File or the New One
A small PHP application may keep a generated manifest, a JSON settings file, or a tiny cache on disk. Writing one is easy. The harder question is what another request sees while that file is being replaced. Can it open …
Read article