Re: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Sebastian Wenleder

Hi,

>header("Content-type: application/download");

try this:

Header("Content-Type: application/x-octet-stream");

It always worked for me...

good luck,

Sebastian

-- 
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]




RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery

At 07:45 9/5/2001 -0700, you wrote:
>You decided it was using binary because \n was not being converted to \r\n?
>
>Aren't you just struggling with the difference between unix and windows
>files?
>
>Perhaps if you filtered the files replacing \n to \r\n when destination is
>windows platform.

thanks man... that actually worked out... now the file is in perfect ascii 
mode just the way I wanted it.

Thanks a lot!


-- 
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]




RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery

At 08:39 9/5/2001 -0500, Boget, Chris wrote:
> > header("Content-type: application/download");
>
>I think you'd need to change this to:
>
>header("Content-type: text/plain");
>
>but I could be wrong...
>
> > and where can I find reference on these header stuff?
>
>Not sure.  I find bits and pieces in this list...

tried it... doesn't work.

if I change to 'text/plain' the download doesn't occur... it shows the 
output on screen...


-- 
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]




RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Matt Schroebel

the man page for header() says look here:
http://www.w3.org/Protocols/rfc2616/rfc2616

> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 9:33 AM

> where can I find reference on these header stuff?

-- 
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]




RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Boget, Chris

> header("Content-type: application/download");

I think you'd need to change this to:

header("Content-type: text/plain");

but I could be wrong...

> and where can I find reference on these header stuff?

Not sure.  I find bits and pieces in this list...

Chris



[PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery

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]