previousHTTP_Download::setThrottleDelay (Previous) (Next) HTTP_Download::setLastModifiednext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTTP_Download::setContentType

HTTP_Download::setContentType() – Set content type

Synopsis

mixed HTTP_Download::setContentType ( string $content_type = 'application/x-octetstream' )

Description

Set a reasonable content type for the download.

Examples:

  • application/pdf

  • application/zip

  • text/css

Returns PEAR_Error if $content_type doesn't seem to be valid.

Parameter

  • string $content_type = 'application/x-octetstream' - a reasonable content type

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

previousHTTP_Download::setThrottleDelay (Previous) (Next) HTTP_Download::setLastModifiednext

Download Documentation Last updated: Sun, 18 Oct 2009
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.