Jump to content

fwrite and start download to user.


denoteone

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.