I have a site run by database, and every single page is the product of a single file. This file usually outputs text/HTML (though there are no headers that specifically tell the browser this). However, I need to output some registry data to be inserted into the user's database, which is normally in a .reg file. I know how to get the .reg extension on it, but I can't figure out what headers I need to use so that the user's browser opens a download window for the .reg file, rather than just displayed the text of it. I have tried Content-Type: application/octet-stream, downloading by hex, and Content-Disposition: attachment; file="". Those might not be verbatim what they should be, but I copied them straight out of someone else's code on EvilWalrus.com, and they seemed to work for that person. If anyone could help me I would greatly appreciate it.
Thanks in advance.