You are here: Re: how is echo implemented in php « PHP Programming Language « IT news, forums, messages
Re: how is echo implemented in php

Posted by Rik on 08/14/07 21:14

On Tue, 14 Aug 2007 22:58:40 +0200, Water Cooler v2 <wtr_clr@yahoo.com>
wrote:

> When used with the command line interface, echo writes to the stdout,
> whereas in a Web environment, it writes to the response stream. How is
> it implemented inside PHP?

I really couldn't tell you, to see how it is emplemented exactly you'll
have to take a look at the source I suppose. For more information how it
works on the command line:
<http://nl3.php.net/manual/en/features.commandline.php>

> Does it write to a stream?

Well, everything in PHP can be reached 'as a stream', how the inner
workings are is offcourse a different story. This tidbit of information
leads me to believe it is just written to the output stream, where this is
actually directed is not really decided there:

<http://nl3.php.net/manual/en/wrappers.php.php>:
"php://output allows you to write to the output buffer mechanism in the
same way as print() and echo()."
--
Rik Wasmus

 

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

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