HTTP_Download::setLastModified (Previous) (Next) HTTP_Download::guessContentType

View this page in Last updated: Sun, 24 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP_Download::setContentDisposition()

HTTP_Download::setContentDisposition() --  Set content disposition

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

  • string [$disposition = HTTP_DOWNLOAD_ATTACHMENT] - the disposition of the download (either 'attachment' or 'inline')

  • string [$file_name = null] - the file name the browser's download window should show

Note

This function can not be called statically.

HTTP_Download::setLastModified (Previous) (Next) HTTP_Download::guessContentType

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.