You are here: Re: [PHP] Delete a file immediately after download « PHP « IT news, forums, messages
Re: [PHP] Delete a file immediately after download

Posted by Marek Kilimajer on 10/06/91 11:08

Shaun wrote:
> Hi,
>
> 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?

Don't put the file to a file at all, simply output the right header and
echo the content.

 

Navigation:

[Reply to this 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

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