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:

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

Paramètres

Valeur retournée

Retourne TRUE en cas de succès, un objet PEAR_Error en cas d'échec.

Note

Cette fonction ne peut pas être appelée de façon statique.