http_send_content_type
(PECL pecl_http:0.10.0-1.5.5)
http_send_content_type — Send Content-Type
Opis
bool http_send_content_type
([ string $content_type = 'application/x-octetstream'
] )
Send the Content-Type of the sent entity.
Informacja: Ta funkcja będzie przypuszczalnie użyta w powiązaniu z http_send_data(), http_send_file() i http_send_stream().
Parametry
- content_type
-
the desired content type (primary/secondary)
Zwracane wartości
Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.
Błędy/Wyjątki
Raises an E_WARNING when the content_type doesn't seem to contain a primary and a secondary part.
Patrz także
- http_send_data()
- http_send_file()
- http_send_stream()
- Klasa HttpResponse jeśli używasz PHP 5.1.0 lub późniejszego
http_send_content_type
There are no user contributed notes for this page.
