php - Handling files for multiple users at once (logistic prob) -


O app creates files on the server, which are shown instantly to users in the HTML element named iFam. So far, I am storing all files in the same folder, each time the user has made a new request overwriting the old ones, the problem is that if more than one user tries to generate the file at one time , Then one of them can not find the correct file, or no file. I think I should make random temporary folders for each generation of files, it will work, but my server can fill in a quick like 100 generations of files if the user after loading the file in IFrame removes this random temporary folder Required, but how do I call the php function on load?
Any other alternative method / idea, I will greatly help others to face such problems?

I can create a single temporary folder, and generate random file names (Md5, GUID, that does not matter).
The same script that is generated before the file is generated in the visualization on the folder, it should check all the files in the folder, except all the files -> generated = 1 day before.

Check and if you have any doubts about getting the file creation / modification date.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -