php - Stop multiple sessions accessing the same file simultaneously -
The GD library is accessing it, while it is possible to lock a file to prevent it being opened?
What I am trying to achieve is similar to the isolation of a 'serializbol' level ... I want to ensure that only one session / user has an image 'dirty' at a time Read '
For example
The large image is empty
I hope this clarifies enough.
check-out. You can either lock the file on which you are working, or create a "lock file" elsewhere in the file system, which checks all your scripts.
Comments
Post a Comment