HTTP_Download::setFile() – Set file path


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

Return value

Returns TRUE on success, PEAR_Error on failure.


This function can not be called statically.

Set various parameters (Previous) Set raw data (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.