I'm trying to create a function that will generate output that could go to
either a file or to the current browser directly. To do this I have something

function GenerateOutput($out)
        fwrite($out, "Some stuff");

and to call it I tried:

        $stdout = fopen("php://stdout", "w");

But for some reason nothing shows in the browser when I do this.

I can't seem to find information about what output stream "printf" is actually
writing to. Do we have access to this stream?

Can anyone provide a hint as to why the above doesn't work?

Paul H. Breslin                                http://Canadian-Artist.com

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to