HTTP_SEND_CONTENT_TYPE(3) 1 HTTP_SEND_CONTENT_TYPE(3)
http_send_content_type - Send Content-Type
SYNOPSIS
bool http_send_content_type ([string $content_type = "application/x-octetstream"])
DESCRIPTION
Send the Content-Type of the sent entity.
Note
This function should be used in conjunction with http_send_data(3), http_send_file(3) and http_send_stream(3).
PARAMETERS
o $content_type
- the desired content type (primary/secondary)
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS
Raises an E_WARNING when the $content_type doesn't seem to contain a primary and a secondary part.
SEE ALSO
http_send_data(3), http_send_file(3), http_send_stream(3), the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_SEND_CONTENT_TYPE(3)