javascript - Can you read a file concurrently in PHP using file_get_contents()?
one text
Let's say there are hundreds, or even thousands, of users on your website at the same time.
In the PHP file, there is a file_get_contents()
which reads a JSON file and displays that to those users.
I have heard that for some people, it may return a file does not exist
if another user is reading the file.
Is this possible through file_get_contents()
? Or is it extremely unlikely