Change the standard out

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thierry

    #1

    Change the standard out

    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.
  • Darvin

    #2
    Re: Change the standard out

    Thierry wrote:[color=blue]
    > 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.[/color]
    Have a look at 'Output control functions'


    Darvin

    Comment

    • Thierry

      #3
      Re: Change the standard out

      Darvin a écrit :[color=blue]
      > Thierry wrote:
      >[color=green]
      >> 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.[/color]
      >
      > Have a look at 'Output control functions'
      > http://www.php.net/manual/en/ref.outcontrol.php
      >
      > Darvin[/color]


      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 ***";

      ?>

      Comment

      Working...