News Feed
Sections




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

DevShed:
Output Buffering
September 03, 2008 @ 08:48:16

This new tutorial from DevShed introduces something that could make a pretty profound impact on your application if used correctly - output buffering.

Output control (or output buffering) allows you to write and execute your scripts normally but send data to the web browser at selected times. The main benefit of this system is that you can call the header(), setcookie() and session_start() functions at any place in your scripts without having to worry about the "headers already sent" error message.

They start with the basics - the functions and what they do - then move on to an example, a login form, that uses the buffering to capture errors and html to be flushed and echoed at the end.

0 comments voice your opinion now!
output buffer tutorial login form example


blog comments powered by Disqus

Similar Posts

Vinu Thomas' Blog: Wordpress blogging on a S60 Phone

Zend Developer Zone: Zend_Tool and ZF 1.8

PHPBuilder.com: A Sanity-saving Debugging Solution for Your PHP Development

Codewalkers.com: Creating a CAPTCHA with PHP

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2


Community Events





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


introduction list interview library configure code application developer project series podcast threedevsandamaybe wordpress bugfix framework release community api laravel language

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