HttpResponse::send

(no version information, might be only in CVS)

HttpResponse::send -- Send response

Leírás

staticbool HttpResponse::send ( [bool clean_ob = TRUE] )

Finally send the entity.

A successful caching attempt will cause a script termination, and write a log entry if the INI setting http.cache_log is set.

Paraméterek

clean_ob

whether to destroy all previously started output handlers and their buffers

Visszatérési értékek

Siker esetén TRUE értékkel tér vissza, ellenkező esetben FALSE értéket ad.

Errors/Exceptions

Throws HttpHeaderException, HttpResponseException

Példák

Példa 1. A HttpResponse::send() example

<?php
HttpResponse
::setCache(true);
HttpResponse::setContentType('application/pdf');
HttpResponse::setContentDisposition("$user.pdf", false);
HttpResponse::setFile('sheet.pdf');
HttpResponse::send();
?>