Unix and Linux Discussions Tagged with output |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
66,001 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,716 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
6,545 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
62,113 |
Shell Programming and Scripting |
|
|
|
1 |
2,825 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
22,871 |
Shell Programming and Scripting |
|
|
|
1 |
4,064 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
10,783 |
Shell Programming and Scripting |
|
|
|
1 |
2,160 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,797 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,169 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,953 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,212 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,945 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
4,931 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,894 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
3,964 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,166 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,625 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,947 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,055 |
Shell Programming and Scripting |
|
|
|
2 |
2,851 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,537 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,739 |
Shell Programming and Scripting |
|
|
|
7 |
6,060 |
Shell Programming and Scripting |
|
|
|
4 |
4,969 |
Shell Programming and Scripting |
|
|
|
5 |
6,338 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,147 |
Shell Programming and Scripting |
|
|
|
6 |
6,764 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,412 |
Shell Programming and Scripting |
|
|
|
5 |
1,656 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
5,174 |
Shell Programming and Scripting |
|
|
|
2 |
11,774 |
Programming |
|
|
|
6 |
4,048 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,564 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
8,188 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,303 |
Shell Programming and Scripting |
|
|
|
2 |
3,117 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,789 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
3,331 |
UNIX for Beginners Questions & Answers |
OB_GET_FLUSH(3) 1 OB_GET_FLUSH(3)
ob_get_flush - Flush the output buffer, return it as a string and turn off output buffering
SYNOPSIS
string ob_get_flush (void )
DESCRIPTION
ob_get_flush(3) flushes the output buffer, return it as a string and turns off output buffering.
The output buffer must be started by ob_start(3) with PHP_OUTPUT_HANDLER_FLUSHABLE flag. Otherwise ob_get_flush(3) will not work.
Note
This function is similar to ob_end_flush(3), except that this function returns the buffer as a string.
RETURN VALUES
Returns the output buffer or FALSE if no buffering is active.
EXAMPLES
Example #1
ob_get_flush(3) example
<?php
//using output_buffering=On
print_r(ob_list_handlers());
//save buffer in a file
$buffer = ob_get_flush();
file_put_contents('buffer.txt', $buffer);
print_r(ob_list_handlers());
?>
The above example will output:
Array
(
[0] => default output handler
)
Array
(
)
SEE ALSO
ob_end_clean(3), ob_end_flush(3), ob_list_handlers(3).
PHP Documentation Group OB_GET_FLUSH(3)