I'm using file_get_contents() to get the contents of a file, BUT I need to be sure that the file doesn't change while file_get_contents() is reading the contents of the file.
I'm not sure if file_get_contents() will ensure that the file contents don't get changed ( another script fwrites() to the file ) while file_get_contents() is doing its thing, or if I need to use a lock file to ensure this doesn't happen.
Anyone know if I need to use a lock file, or will I be fine just calling file_get_contents()?