On Fri, 2008-11-28 at 12:01 +0800, jason liang wrote: > Hi all > > I am comfused about the function ob_end_flush.In the manual:This function > will send the contents of the topmost output buffer (if any) and turn this > output buffer off. > > i have made such tests. > > <?php > ob_start(); > echo "hello word!"; > ob_end_flush(); > ?> > this works alright.the script output "hello world!". > > <?php > ob_start(); > echo "hello word!"; > ob_end_flush(); Right here you said to end the current buffer... which means the active output buffer becomes the next outer one. > ob_clean(); Here you've told the current buffer to purge. So you've essentially wiped everything that was flushed from the previous inner buffer to the current buffer. So you see nothing. Why is there an outer buffer? You probably have output buffering enabled in your php.ini (see output_buffering in php.ini). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php