It seems I can show the buffer output now, I don't know how but it works.
Something weird is going on anyway, I included in the template the PHP file with the
PHP Code:
ob_start();
include('./products.php');
$products = ob_get_contents();
ob_end_clean();
as told.
This is the file products.php
PHP Code:
<?php
$my_variable="One";
echo"2";
include ('textprova.txt');
echo"4";
?>
This is textprova.txt
In the template i show this variables :
$my_variables (that contain One)
and
$products (that should show the buffered output from the included file.
That's what I see :
One 2 echo"3"; 4
instead of
One 2 3 4
Does it make any sense ?