HTTP_Download::setThrottleDelay | HTTP_Download::setLastModified |
HTTP_Download | |
PEAR Manual | |
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.
string $content_type = 'application/x-octetstream' - a reasonable content type
Returns TRUE on success, PEAR_Error on failure.
This function can not be called statically.
HTTP_Download::setThrottleDelay | HTTP_Download::setLastModified |
HTTP_Download | |
PEAR Manual | |