HTTP_Download::setContentDisposition()

HTTP_Download::setContentDisposition() --  Set content disposition

Synopsis

void HTTP_Download::setContentDisposition (string [$disposition = HTTP_DOWNLOAD_ATTACHMENT], string [$file_name = null])

Description

Set content disposition of the download.

"Content-Disposition" is not HTTP compliant, but most browsers follow this header, so it was borrowed from MIME standard. It looks like this: "Content-Disposition: attachment; filename=example.tgz".

Parameter

Note

This function can not be called statically.