Posted by Thierry on 10/11/05 21:50
Darvin a écrit :
> Thierry wrote:
>
>> Hello.
>>
>> Is there any way to redirect the standard out to some variable ?
>>
>> I meen, instead of seending the result to the browser, send it to a
>> variable.
>>
>> Thx, Titi.
>
> Have a look at 'Output control functions'
> http://www.php.net/manual/en/ref.outcontrol.php
>
> Darvin
Thx Darvin.
I've looked at your page and I've wrote that :
<?php
session_start();
echo 'aaaaaa';
echo '<br>';
ob_start();
echo 'bbbb';
include('test2.php');
$buffer = ob_get_contents();
ob_end_clean();
echo "*** $buffer ***";
?>
[Back to original message]
|