Re: problème avec HTTP_DOWNLOAD
| From: | Michael Wallner | Date: | Wed, 09 Jun 2004 13:12:30 +0000 |
| Subject: | Re: problème avec HTTP_DOWNLOAD | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13037@lists.php.net to get a copy of this message | ||
Hi Loulou, you wrote:
> $dl->setContentDisposition("HTTP_DOWNLOAD_INLINE",'test.doc');
^ ^
Please don't use quotes there, because it's a constant.
You can also use "attachment" or "inline" literally.
> $dl->setContentType('application/msword');
I don't know exactly if that is the correct content
type - isn't it something like vnd.ms.word ...
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc