File concurrent file access
| From: | Florian Lemaitre | Date: | Fri, 22 Jul 2011 13:44:19 +0000 |
| Subject: | File concurrent file access | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-314157@lists.php.net to get a copy of this message | ||
Hi !
I'm developing my new website and I'm worried about concurrent file access.
In fact, I want to suppress a maximum database interactions so I keep information in files with faster I/O than databases.
But I'm worried by the fact that an error can occur when someone try to access a file being edited by a cron task.
Does PHP do all the stuff itself or is there something to do about it ?
PS: I only use file_get_contents, file_put_contentsand unlink on files.
Best regards.
Florian