Re: php://stdout, ob_xxx and

From: Date: Mon, 18 Feb 2002 15:24:05 +0000
Subject: Re: php://stdout, ob_xxx and
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80151@lists.php.net to get a copy of this message
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" <edink@proventum.net> 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

« previous php.dev (#80151) next »