Is there a way that I can run a php command if a window is closed?
For example, I have a script that the user uses to upload files to a temp directory on the server ready for the user to decide if they want to keep them or not. However, as it stands at the moment, if the user just leaves the page the files stay there.
Thanks