Reply to Re: [PHP] Delete a file immediately after download

Your name:

Reply:


Posted by Richard Lynch on 10/04/46 11:08

Matt M. wrote:
>> I have a database that contains encrypted data using Mysql function
>> ENCODE(). Certain users will be allowed to view this data and I will
>> allow
>> them to download a CSV file contain the decrypted data using the Mysql
>> DECODE() function. However I don't want this file to be left on the
>> server,
>> is there a way to ensure that the file is deleted immediately after it
>> has
>> been downloaded?
>
> http://us4.php.net/unlink

PS If the data is REALLY sensitive, you may want to look into command line
tools to actually ERASE the data instead of just doing unlink.

'unlink' only nukes the directory information to find the file. The file
contents still exist, intact, and there are tools to mine un-linked files
to find content.

Hard Drive forensics experts can even manage to retrieve over-written
files based on some very very very expensive/hard analysis of the magentic
fields -- Sort of like reading through scratched out stuff on paper by
holding it up to the light, only a lot more technical and a lot more
expensive... It's unlikely you need to worry about *THAT* though, as I
understand it...

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация