News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Speed Up Your Website with PHP Buffer Flushing
October 29, 2010 @ 08:34:18

New from the SitePoint blog, there's an article from Craig Buckler about using buffer flushing to increase the load times of your applications and websites.

Output buffering makes this process quicker and more efficient. The buffer is essentially a big memory-resident string. When text is output, it's appended to the buffer rather than returned to the browser immediately. The buffer is then "flushed", i.e. its contents are transmitted and the string is reset pending further output.

He notes the instances where the buffer would be flushed - end of page, exceeds number of bytes allowed or a manual flush is called - and code snippet example of a simple flushing setup. He also asks for some feedback on this method, so be sure to look at the comments for more thoughts from the community.

1 comment voice your opinion now!
buffer flush output speed optimize


blog comments powered by Disqus

Similar Posts

Alex Netkachov's Blog: Optimize PHP memory usage: eliminate circular references

Harun Yayli's Blog: memcache.php stats like apc.php

Bard Farstad's Blog: Optimizing Apache, PHP and APC for Intel based Mac

Mike Wallner's Blog: Round Up

PHPClasses.org Blog: Throttling Background Tasks: Unusual Site Speedup Techniques: Part 2


Community Events





Don't see your event here?
Let us know!


interview developer threedevsandamaybe code wordpress refactor language framework list series install release testing api introduction community opinion laravel podcast unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework