HTTP_Download::setFile

HTTP_Download::setFile()

HTTP_Download::setFile() --  Set file path

Description

Set the path to the file for the download.

Parameter

  • 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.

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.