Page 1 of 1

Has File Been Downloaded

Posted: Mon Apr 18, 2011 6:04 am
by RCA86
Hey guys,

Does anybody know if it's possible, using PHP, to tell if a file in a directory has been accessed? I'm exporting a CSV file for download, and would like to be able to check if it's been downloaded, so I can delete it (using a cron job).

Cheers

Re: Has File Been Downloaded

Posted: Mon Apr 18, 2011 6:27 am
by awebtech
Hello, RCA86, you can provide file for download not directly, but via PHP script. As soon as last part of the file is transferred, this script will delete the file.

For example: http://www.finalwebsites.com/forums/top ... e-download

Re: Has File Been Downloaded

Posted: Mon Apr 18, 2011 8:24 am
by RCA86
That'll do nicely. Cheers for the help!