Hello,
I’m trying to use the buffering system of php to save the output of XSLT transform, e.g.
[php]
ob_start(); //Turn on output buffering,
$output = $proc->transformToXML($xmldoc);
echo $output;
$cache_output = ob_get_contents();
ob_end_flush(); //Flush and turn off output buffering
[/php]
So the idea is I write $cache_output to a file for use later, but when I look into $cache_output it is always empty.
ob_end_flush(); does however lead to the contents of $output being output to the browser.
Any ideas?
Thanks.