RSS DAILY NEWS TICKER EXAMPLE


home > overview

Arnold Daniels' Blog: How I PHP: The Output Handler




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.




click here to see original article or to find similar articles

 RSS DAILY HEADLINES

HEADLINES

McCain takes 5-point lead over Obama

Aug. 20: As the Republican and Democratic conventions approach, speculation increases the candidates’ picks for running mates. NBC’s Andrea Mitchell reports.  (Today Show)In a sharp turnaround, the Republican candidates has opened a 5-point lead on his Democratic rival and is seen as a stronger manager of the economy, according to a Reuters/Zogby poll.


Mexico outraged over corrupt police, kidnappings (AP) AP - After kidnappers in police uniforms set up a fake checkpoint to snatch 14-year-old Fernando Marti off a Mexico City street, his businessman father paid hundreds of thousands of dollars in ransom, and waited for his son's safe return.

Georgian separatists line up for Russian recognition (AFP)

Russian troops drive near their base in Teklati in western Georgia. Georgia's South Ossetia and Abkhazia regions planned rallies Thursday to ask Russia for recognition as independent states, two weeks after Russian troops occupied both provinces.(AFP/Louisa Gouliamaki)AFP - Georgia's South Ossetia and Abkhazia regions planned rallies Thursday to ask Russia for recognition as independent states, two weeks after Russian troops occupied both provinces.



Find this article in Google