Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete file after download

Status
Not open for further replies.

proggybilly

Programmer
Apr 30, 2008
110
US
I am working on a secure emailing system using PHP and PERL. The basis of the app is to encrypt/decrypt messages and files in the background using PERL. That part is working however to avoid a possible security risk, I need to create in my PHP an option to have the file deleted after the download is complete. I have the automatic download working, I just need to figure out how to delete it once the download is complete.
Any ideas?
 
Deleted from where? If the deletion is to occur on the server then you can use the unlink() function in PHP.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I figured it out, just had to issue a system rm statement once the readfile was done.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top