Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16560 программистов и 1771 робот. Сейчас ищут 1769 программистов ...
HTTP_Download::setContentType
Вернуться к: HTTP_Download
HTTP_Download::setContentType
HTTP_Download::setContentType() – Set content type
Synopsis
mixed HTTP_Download::setContentType ( string $content_type = 'application/x-octetstream' )
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.
Вернуться к: HTTP_Download