You may want to be careful about calling ob_end_clean() from within your call-back function. I believe this can produce an endless-loop within PHP.
![]() | ob_end_cleanDescriptionbool ob_end_clean ( void )This function discards the contents of the topmost output buffer and turns off this output buffering. If you want to further process the buffer's contents you have to call ob_get_contents() before ob_end_clean() as the buffer contents are discarded when ob_end_flush() is called. The function returns TRUE when it successfully discarded one buffer and FALSE otherwise. Reasons for failure are first that you called the function without an active buffer or that for some reason a buffer could not be deleted (possible for special buffer). The following example shows an easy way to get rid of all output buffers:
See also ob_start(), ob_get_contents(), and ob_flush(). ![]()
Adam of Fusion Bay
19-May-2006 03:38
You may want to be careful about calling ob_end_clean() from within your call-back function. I believe this can produce an endless-loop within PHP.
mrfritz379
09-Feb-2005 10:14
This may be posted elsewhere, but I haven't seen it.
John Smith
04-Jun-2004 07:39
Note that if you started called ob_start with a callback, that callback will still be called even if you discard the OB with ob_end_clean.
daijoubuNOSP at Mvideotron dot com
22-Feb-2004 05:11
About the previous comment:
programmer at bardware dot de
27-Jun-2003 09:32
You might want to prevent your script from executing if the client already has the latest version. | ![]() | |