logo       

Re: Help using HTTP_Download: msg#00409

php.pear.general

Subject: Re: Help using HTTP_Download

Hi Craig H. Anderson, you wrote:
> I need some help on how to use the HTTP_Download class.

> $params['contenttype'] = "Content-Type: text/tab-separated-values;
> charset=ISO-8859-1";

Strip "Content-Type: " from this, though I'll have to look for if
the PCRE is allowing "; charset=..."

> $params['contentdisposition'] = "Content-Disposition: attachment;
> filename=contacts.tsv";

Use:
$params['contentdisposition'] = array(
HTTP_DOWNLOAD_ATTACHMENT,
'your_file_name'
);

> $http_dnld = new HTTP_Download($params);
> $http_dnld->send();

HTH,
--
Michael - < mike(@)php.net >

Attachment: pgplRNfnSlHW2.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise