![]() |
|
Dedicated servers
|
|
|
|
|
|
|
Reference and ManualHosting Glossary PHP HTML 4.01 CSS 2.0 Core Javascript 1.5 XHTML 1.0
LXXXIII. Output Control FunctionsIntroductionThe Output Control functions allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has began outputting data. The Output Control functions do not affect headers sent using header() or setcookie(), only functions such as echo() and data between blocks of PHP code. RequirementsNo external libraries are needed to build this extension. InstallationThere is no installation needed to use these functions; they are part of the PHP core. Runtime ConfigurationThe behaviour of these functions is affected by settings in php.ini.
Table 1. Output Control configuration options
Here's a short explanation of the configuration directives.
Resource TypesThis extension has no resource types defined. Predefined ConstantsThis extension has no constants defined. Examples
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.)
See AlsoSee also header() and setcookie().
|
![]() Net Host Tools
Feature Host
We Manage IT Differently
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|