downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Output Control Funkcje> <Przykłady
[edit] Last updated: Fri, 23 Mar 2012

view this page in

Basic usage

Przykład #1 Output Control example

<?php

ob_start
();
echo 
"Hello\n";

setcookie("cookiename""cookiedata");

ob_end_flush();

?>

In the above example, the output from echo() would be stored in the output buffer until ob_end_flush() was called. In the mean time, the call to setcookie() successfully stored a cookie without causing an error. (You can not normally send headers to the browser after data has already been sent.)



add a note add a note User Contributed Notes Basic usage
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites