|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I wonder if anyone can help,
I have created a .csv file through php and stored it in a directory. What I want do is provide a link for the user to download the file. Unfortunetly it displays the file instead of downloading it, is there any way of setting headers or something to make it download the file. Thanks for your help in advance. Falcon. |
|
#2
|
|||
|
|||
|
perhaps if you zipped it it would download?
what exactly is a csv |
|
#3
|
|||
|
|||
|
Hi,
I believe your problem is the following: The server has been instructed what kind of headers to add to files, if the file type is unknown it says to your browser to view it as text. With known filetypes, it says to the browser which header it has and then the browser decides what to do with it. i.e. Download it/Open it... I think that's it URL ------------------ *-------------------------------* Platinum Award - ThinkQuest 1999 http://www.ThinkQuest.org ES2000 - Team 25014 http://library.advanced.org/25014 WebZanity Design http://www.WebZanity.com *-------------------------------* |
|
#4
|
|||
|
|||
|
Thanks for your help.
I sorted it by just zipping it up CSV file= Comma Seperated Value file Thanx Falcon |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Forcing a file type download |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|