|
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]
|