[thelist] Trapping output of php script?
Chris W. Parker
cparker at swatgear.com
Wed Jul 23 14:24:04 CDT 2003
Aredridel <mailto:aredridel at nbtsc.org>
on Wednesday, July 23, 2003 9:56 AM said:
> ob_start();
> require('YaBBindex.php');
> $output = ob_get_contents();
> ob_end_clean();
>
> I use this extensively in my code -- I generate simple, clean XHTML
> output in all my scripts -- then the output buffer functions get
> called, which apply XSL stylesheets to make them into more stylish
> code, and, if XHTML is not supported on the browser I'm targetting,
> it recodes it to HTML 4.0, and can drop CSS and all sorts of things.
Care to show an example of this?
chris.
More information about the thelist
mailing list