note 80836 added to function.ob-get-clean

From: Date: Sat, 02 Feb 2008 15:47:29 +0000
Subject: note 80836 added to function.ob-get-clean
Groups: php.notes 
Request: Send a blank email to php-notes+get-135736@lists.php.net to get a copy of this message
If you're trying to capture the output from an included 3rd party script you don't seem to be capturing everything, the following might help: function ob_end_clean_all() { $s = ""; do { $s = ob_get_contents() . $s; } while(ob_end_clean()); return $s; } This function closes all nested output bufferings, therefore closing any buffers that the included script does not explicitly close. It's basically a ob_end_clean that sweeps together all the output buffers instead of just the innermost one. ---- Server IP: 195.184.96.15 Probable Submitter: 90.184.121.185 ---- Manual Page -- http://www.php.net/manual/en/function.ob-get-clean.php Edit -- https://master.php.net/note/edit/80836 Del: integrated -- https://master.php.net/note/delete/80836/integrated Del: useless -- https://master.php.net/note/delete/80836/useless Del: bad code -- https://master.php.net/note/delete/80836/bad+code Del: spam -- https://master.php.net/note/delete/80836/spam Del: non-english -- https://master.php.net/note/delete/80836/non-english Del: in docs -- https://master.php.net/note/delete/80836/in+docs Del: other reasons-- https://master.php.net/note/delete/80836 Reject -- https://master.php.net/note/reject/80836 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135736) next »