My PHP script maintains files using readfile () and manually adds HTTP headers. Files are about ~ 1 MB in size, so partial reading is not required.
What is the best way to replace this file with an updated one, but ensure that already started downloads are not broken? I want pending downloads to be completed with the original old version of the file.
Platform: Linux, PHP 5, Apache 2.
source
share