News Feed
Jobs Feed
Sections




News Archive
Brian Moon's Blog:
ob_start and HTTP headers
February 01, 2010 @ 14:38:27

Brian Moon has a new post to his blog today looking at something it's common for web applications to use, ob_start, and what about HTTP headers makes it work to prevent the infamous "headers already sent" message.

HTTP is the communication protocol that happens between your web server and the user's browser. Without too much detail, this is broken into two pieces of data: headers and the body. The body is the HTML you send. But, before the body is sent, the HTTP headers are sent.

He includes a sample raw HTTP response for a page and how the ob_start function works to buffer the output of the resulting page to save the header information until the buffer is echoed or cleaned out. There is a down side he mentions, though - there's no partial buffering built in so it's an all or nothing short.

0 comments voice your opinion now!
obstart http header buffer


blog comments powered by Disqus

Similar Posts

Sanisoft Blog: Email component in CakePHP is now Header Injection safe

Bill Staples' Blog: IIS7 Patch for Windows Vista fixes CGI/PHP apps - multiple response headers

Vinu Thomas' Blog: MemProxy 0.1 - Memcache Proxy Server in PHP

Khalid Hanif\'s Blog: Email Header Injection in PHP

Evert Pot's Blog: HTTP Basic and Digest authentication with PHP


Community Events











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


zendframework2 community code tool introduction series interview opinion development testing release phpunit framework conference functional example language unittest application podcast

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