Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
Shaun wrote: > Hi Marek, > > Thanks for your reply, could you tell me how I would go about this please? You can muck around with CSV if you prefer, but tab-delimited is way easier, assuming no tabs in your content. This also assumes no newlines in your content. If there are tabs and/or newline

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Jason Barnett
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? header('Content-type: text/csv'); header('Content-Disposition: attachment; filename="download.csv"'); /** Now you perform the MySQL query, DECODE the information and echo it to the screen. Hopefully

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be all

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Marek, Thanks for your reply, could you tell me how I would go about this please? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shaun wrote: >> Hi, >> >> I have a database that contains encrypted data using Mysql function >> ENCODE(). Certain users will be

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
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 t

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Bret Hughes
On Tue, 2005-02-15 at 14:00, Richard Lynch wrote: > 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 Mysq

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
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

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
Shaun wrote: > Thanks for the reply, I know how to delete a file I just wanted to know if > its possible to ensure that its deleted automatically as soon as the user > has downloaded it. Yes. You don't even put the file into your web tree DocumentRoot directory, and you write a PHP script that al

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Matt, Thanks for the reply, I know how to delete a file I just wanted to know if its possible to ensure that its deleted automatically as soon as the user has downloaded it. Thanks... "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> I have a database that contains e

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Matt M.
> 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, >

[PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
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,