Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File downloads ....

Status
Not open for further replies.

SteveBrett

Programmer
Apr 24, 2000
107
MT
I have a pretty specific problem.

What i need to do is dump out a report in a table (whihc i have done) but also give the user the option to download the file as a csv.

I've got php to create a file in a tmp dir using tempnam() and then opening the file, writing to it and closing it. Got the link sorted to the file but when the user clicks on the file it opens it in another window. Right clicking and choosing Save Target As works but what i was looking for was an automatic download ... like 'Your download will start automatically ...' kind of thing ?

Any ideas ?

Steve
 
I do not know how to add an ad terminator to windows 98!!!
 
If the file was gzipped, IE would automatically download it. Most Zip programs recognise *.gz files.

This might be impractical for you, but its a thought. Dean Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top