I'm struggling to understand the principles behind it. I read the manual, but i still have questions
Say for instance if I have a highly dynamic database driven website where the menu, footer, and content is changing very often on a daily basis. I would have thought that output buffering would cause issues by showing old content instead of the newer. From what I have read, ob doesn't compare data to check for changes, it just does what you tell it. so I think I have misunderstood how it is surposed to work.
Say if I did this...
Code: Select all
<?php
ob_start('ob_gzhandler');
all my code here for a dynamic page inc header, content, footer
?>What would that achieve ? Would I need to wrap each dynamic element this like instead...
Code: Select all
<?php
ob_start('ob_gzhandler');
[b]dynamic header code...[/b]
ob_start('ob_gzhandler');
[b]dynamic content code...[/b]
ob_end_flush();
[b]dynamic footer code...[/b]
ob_end_flush();
?>Cheers,
Doug