Re: TEmp File

From: Date: Fri, 30 Mar 2001 06:49:11 +0000
Subject: Re: TEmp File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46236@lists.php.net to get a copy of this message
On Fri, 30 Mar 2001 15:10, Randy Johnson wrote: > 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 Why not create the information and download it on-the-fly? That way no files are created, no evidence left laying around, etc. I've attached (for Randy, won't get to the list) something I use to do this with output as a tab delimited file. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

Attachment: [text/english] maillist.phph
« previous php.general (#46236) next »