The PHP script generates an HTML page for the client and a set of image files displayed by this page. After image files are displayed on the client, they should be deleted (on the server). Image files are images about 200x300 in size.
There are three ways to do this:
- Add a call to another onload HTML page handler in another frame of the cleanup script
- Put on the crowns a periodic garbage collection procedure
- In a PHP script, fork through a system or exec parallel process that will clean up garbage for a given pause. But somehow this is all ... Velma kucheryavo.
And is it possible to get a signal from Apache to complete the exchange with the client on this script and process it? Or specify Apache, that some files can be deleted after the completion of the exchange?