![]() Preserved Topic: Output Buffering - more thna just a "cannot add header information" cure .. (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Den Haag, Netherlands |
![]() I, like many others, have come across "cannot add header information" in PHP resulting from trying to add a header after page output has begun .. and like most, I have occasionally fixed it by wrapping the page in ob_start/ob_end_flush functions ... |
Paranoid (IV) Inmate From: Sthlm, Sweden |
![]() Trib, this is frekkin' brilliant! |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() you know, the grail actually caches the 100 most used db objects as they come back from the database... |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
![]() Thanks Dan .. have fun - BTW - for someone at your level - take a look at the optional argument to ob_start .. that's a real eyeopener ... it's basically the name of a function which will be performed on the entire output of the OB when Output Buffering finishes .... Neat for variable substitution if you don't want to go caching ... or heres a really nice one ... code: ob_start("ob_gzhandler"); ... You get automatic on-the-fly gzip compression but only for browser which are set up for it ... which could reduce your uplink bandwidth usage by quite a considerable amount. |