adam291086 Posted February 22, 2009 Share Posted February 22, 2009 Is it possible to create a file and download it without having to store it on my web server. What i am want to do is allow the user to create a csv dump of a database content and then that csv file downloads to their personal computer. Link to comment https://forums.phpfreaks.com/topic/146382-file-handling/ Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 It is. Use header to set proper HTTP headers, and then echo csv content. Link to comment https://forums.phpfreaks.com/topic/146382-file-handling/#findComment-768553 Share on other sites More sharing options...
adam291086 Posted February 22, 2009 Author Share Posted February 22, 2009 for the download of a csv file should the header be application/force-download Link to comment https://forums.phpfreaks.com/topic/146382-file-handling/#findComment-768565 Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 I'm not really sure. Try Link to comment https://forums.phpfreaks.com/topic/146382-file-handling/#findComment-768569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.