logo       

Help using HTTP_Download: msg#00392

php.pear.general

Subject: Help using HTTP_Download

I need some help on how to use the HTTP_Download class.
The following code is in a file download.php.
The download question looks like this:
Open 'http://www.domain.com/download.php' (attachment)?

[Open] - gets the correnct data.
[Save as] - gets an error box.
Already saving URL
http://www.domain.com/download.php

// code from download.php
$dnld = "String with data to download";
$params = array();
$params['data'] = $dnld;
$params['contenttype'] = "Content-Type: text/tab-separated-values;
charset=ISO-8859-1";
$params['contentdisposition'] = "Content-Disposition: attachment;
filename=contacts.tsv";
$http_dnld = new HTTP_Download($params);
$http_dnld->send();

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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

News | FAQ | advertise