PHP Doku:: Set content type - function.httpresponse-setcontenttype.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPThe HttpResponseHttpResponse::setContentType

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
The HttpResponse

<<HttpResponse::setContentDisposition

HttpResponse::setData>>

HttpResponse::setContentType

(PECL pecl_http >= 0.10.0)

HttpResponse::setContentTypeSet content type

Beschreibung

static bool HttpResponse::setContentType ( string $content_type )

Set the Content-Type of the sent entity.

Parameter-Liste

content_type

the content type of the sent entity (primary/secondary)

Rückgabewerte

Returns TRUE on success, or FALSE if the content type does not seem to contain a primary and secondary content type part.

Siehe auch


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)