You are here: Re: Change the standard out « PHP Programming Language « IT news, forums, messages
Re: Change the standard out

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

?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация