I am having a problem with the unlink function.
I have a page that, when updating, looks for a directory for newly added files. The user can choose to manage files and also delete any file. However, when a user deletes a file, there is an almost 5 second delay before actually deleting the file from the server directory. In the meantime, if the user updates the browser, the same file that should have been deleted appears again as a new file. The problem is that if the user deletes this file again, the file no longer exists due to this initial delay ...
Any thoughts on this? It drives me crazy and doesn't know how to fix this situation ...
source share