denoteone Posted April 12, 2010 Share Posted April 12, 2010 If they are on my site and they fill out a quiz I would like for them to be able to download there answers or just save a copy on there machine. is this possible? Link to comment https://forums.phpfreaks.com/topic/198271-fwrite-and-start-download-to-user/ Share on other sites More sharing options...
cags Posted April 12, 2010 Share Posted April 12, 2010 Yes this is possible. The are several ways of doing it, depending on how large the files are and what their contents are, the exact solution will vary. If you are using fwrite to store a copy of the file locally you can use readfile to send the file to the user. This is possibly not the best solution though if you don't want a server side copy. Simply linking to a page that sends the header of something like 'text/plain' then echo's the data, would be another solution. Link to comment https://forums.phpfreaks.com/topic/198271-fwrite-and-start-download-to-user/#findComment-1040390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.