Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

[PHP] TEmp File From: Randy Johnson (programmer <email protected>)
Date: 03/30/01

Here is the scenario:

I want to let my users download their history of transactions from a mysql
database. I have that part working...they click a link a csv file is
created for them to download. now here is my question.

Is there a way to have the file delete after they have downloaded it? Also
is there a way to have the file download as filename.csv but have the
actually file that is create named a random name of numbers and letters
i.e. 2s3d4f5g6h.csv

My concern is to have the file be deleted after download and/or make it so
no other users could guess the url and download someone else's history.

Any Advice is much appreciated.

thanks

randy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>