Does anyone know what header type I should send to start a download automatically?
I want users to fill out a form on my site, the details are then merged with a template file and sent as a download.
It's not practical for me to create a temporary file and then redirect the user to it as the site gets a lot of traffic and it would never get deleted.
Is there a way to terminate the current page output from PHP. For example, when you write the first character of output, a " Content-Type: text/html\n\n" is sent automatically by the interpreter, how do I say, "no more" so I can send another header() command?
Thanks in advance.