I have a blob saved in my database (a text file). I can retrieve this and then use echo on the return value which prints the text file contents. However, I really am not sure how to save the file to disk
header("content-type: file/txt");
This seems to save the current php file to disk so I am guessing i need to modify this somehow to work with my blob? Is this correct?
Thanks
Do something like this:
or
That should force a download to the client.