HTTP_Download::setContentType()

HTTP_Download::setContentType() --  Set content type

Referentiesamenvatting

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

Beschrijving

Set a reasonable content type for the download.

Examples:

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

Parameter

Return waarde

Geeft TRUE terug bij success, PEAR_Error als het faalt.

Note

Deze functie kan niet statisch worden aangeroepen.