[PHP] forcing upload instead of showing doc

2001-05-08 Thread Christian Dechery
How do I force an output to be recognized by the browser by a downloadable text file as soon as I press the submit button? what header(*) stuff should I add before echo-ing stuff? thanks . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L .

Re: [PHP] forcing upload instead of showing doc

2001-05-08 Thread Wieger Uffink
Hi, ? // file to post to header(Content-Type: application/octet-stream); header(Content-Disposition: attachment; filename=name.doc); include(file.doc); ? Wieger Christian Dechery wrote: How do I force an output to be recognized by the browser by a downloadable text file as soon as I press

Re: [PHP] forcing upload instead of showing doc

2001-05-08 Thread Christian Dechery
It didn't work at all. It started a download, but with a filename called myscriptfilename.html and with the contents of the html (in this case the form) being shown and not the output. I want to set these headers, and then do regular echo statements to this newly created downloading file. Hi,

Re: [PHP] forcing upload instead of showing doc

2001-05-08 Thread Toby Miller
either way. --Toby - Original Message - From: Wieger Uffink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 12:07 PM Subject: Re: [PHP] forcing upload instead of showing doc Hi, ? // file to post to header(Content-Type: application/octet