HTTP_Download::setContentType()

HTTP_Download::setContentType() --  Set content type

Synopsis

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

Beschreibung

Set a reasonable content type for the download.

Examples:

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

Parameter

Rückgabewert

Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.