Hi,
I m a beginner to PHP
and MySQL
, I am having 3 user roles in my project:
- manager
- editor
- mtuser
Managers account can upload files to the system. Editors and mtusers are able to download file uploaded by a manager, they can modify those and reupload back to managers (feedback).
I am using a temp directory to store those files on the server.
I want to check with that file like suppose editor and mt user should not uploaded rather then downloaded files how I check that?
I also want to avoid collisions where several users try and write to the same file at once.