News Feed
Sections




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

Arnold Daniels' Blog:
How I PHP The Output Handler
November 16, 2007 @ 11:17:00

Arnold Daniels has a quick little tutorial posted to his blog about using the output handler in PHP (one of what he considers a technique that's "missing out" from normal PHP use). His example involves buffering the common page parts - like a template.

A website usually has a part which is common across all pages, containing the HTML header, the menu and those kinds of things. This is often solved in one of four ways. [...] All of these methods work, however there is a better way to solve this. You guessed it, by using an output handler.

He links to an example he's created and includes the code for his OutputHandler class to make controlling the content easier.

0 comments voice your opinion now!
output buffering handler tutorial template output buffering handler tutorial template


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts

Ian Selby's Blog: Making RESTful Requests in PHP

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component

DevShed: Factoring Content Boxes with the Factory Pattern in PHP 5


Community Events





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


api community unittest configure laravel symfony release composer framework language podcast introduction series voicesoftheelephpant conference opinion interview threedevsandamaybe version list

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