header("Content-Disposition: attachment; filename=$file_name");
header("Content-Type: application/octet-stream"); //or any other MIME type
....
echo "Content";
HTH,
Bojan Gajic
Natasha wrote:
> Hi,
>
> I'm making a small thing, that sends download response
> to the header, so that I can build a file from some
> data in the mysql, and send the data. It can be both
> text and binary data, could some one help out how to
> go about this ?
>
> I know about Content-Disposition, but I don't know to
> build it.
>
> thanks.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> --
> 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]
--
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]