PHP - fread() waiting until another fwrite() script ends
问题 Update As this.lau_ commented, it seems the problem is that no code is running at all on the server when the first file is running. I guess some configuration only allows one script to be run at once - or only one script per "user". Now I will investigate what can be causing that behaviour on the server. Thank you everyone for your help! . Original question I've got two PHP scripts, on separate files: /* The first file contains */ for($i = 0; $i < 10000; $i++){ $w = fopen($progress_file, "w")