PHP Output Buffering
Thursday, September 4th, 2008Some of the coolest functions available in PHP are the output buffering functions. If you are reading this, you probably have some idea of how web php pages are delivered from the server to the client, but if you don’t, here is a quick recap:
- User requests any web page
- The web server receives and interprets the request
- The requested file is sent to the PHP processor
- PHP compiles and executes the combination of PHP and HTML sent to it
- The compiled information is sent back to the web server (the page may not be complete yet)
- Your browser downloads the page from the web server
