HTTP_Download::setParams | HTTP_Download::setData |
HTTP_Download | |
PEAR Manual | |
mixed
HTTP_Download::setFile
(
string
$file
,
bool
$send_404 = true
)
Set the path to the file for the download.
string $file - file path
bool $send_404 = true - whether to send "HTTP 404 File Not Found", if file couldn't be found
Returns TRUE on success, PEAR_Error on failure.
This function can not be called statically.
HTTP_Download::setParams | HTTP_Download::setData |
HTTP_Download | |
PEAR Manual | |