I should have added that php://stdout just does:
fdopen(dup(STDOUT_FILENO), mode)
which bypasses the output buffer (and possibly screws up the output
if you use both in a script).
--Wez.
On 19/02/02, "Edin Kadribasic" <[EMAIL PROTECTED]> wrote:
> > Hey,
> >
> > would it be good to be able to do this:
> >
> > $fp = fopen("php://output", "w");
> > ...
> > fwrite($fp, $data);
> >
> > Where php://output represents the current output buffer.
> > This can be implemented as a stream that calls PHPWRITE()
> >
> > Comments for and against please!
>
> What would be the difference between writing to php://stdout and
> php://output?
>
> Edin
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php