I got my script to successfully force the otuput to be redirected to a download
of a new file.

using:

if(stristr($HTTP_USER_AGENT,"MSIE"))
$att="";
else
$att=" attachment;";
header("Content-type: application/download");
header("Content-disposition:".$att." filename=".$filename);

but the problem is, the output is comming as binary... so the '\n' is not
working, instead it'comming as a one giant line with lots of weird chars
instead of '\n'... how do I force it to be in ASCII mode?

and where can I find reference on these header stuff?





. [ Christian Dechery      ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to