SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 25th, 1999, 05:11 AM
falcon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #2  
Old November 26th, 1999, 05:42 AM
sawz
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
perhaps if you zipped it it would download?

what exactly is a csv

Reply With Quote
  #3  
Old November 28th, 1999, 05:14 PM
Zedz
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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
*-------------------------------*

Reply With Quote
  #4  
Old December 6th, 1999, 04:55 AM
falcon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks for your help.

I sorted it by just zipping it up

CSV file= Comma Seperated Value file

Thanx

Falcon

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Forcing a file type download


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway