|
Posted by Water Cooler v2 on 08/14/07 21:17
On Aug 15, 2:14 am, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 14 Aug 2007 22:58:40 +0200, Water Cooler v2 <wtr_...@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
I downloaded the source on my Windows XP Pro machine. Can you please
tell me in which folder I can find the definition of the function?
Navigation:
[Reply to this message]
|