PHP - Unlink Timer - Delete files after * mins
Posted on 2007-08-01
I have a php page that allows a user to download a unique file. ( based on random number )
The user can download. But i wanted this file to be deleted like 30 mins.
Something like a timer for such files...
EG: User 1 download file qwert.zip at 1200hrs. File to be deleted @ 1230hrs.
User 2 download file zxcvb.zip at 1201hrs. File to be deleted @ 1231 hrs.
Is this workable in php?
I know of the command to delete = unlink()
but don know about the timer...