Imagine an online newspaper with static files, like the first page with the headlines.
The index.html is generated by a PHP script run by cron every 5 minutes, and it writes the file on a volume shared with Nginx.
The script rewrites the index.html through file_put_contents. No other process modifies the file, while Nginx returns its content.
Taking into account multiple reading accesses on the index.html per second, would file_put_contents be safe? If not: what could I use?