uniwersalny writer

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
chce napisac uniwersalnego writera piszacego na ekran albo do pliku.
sadze ze takie cos powinno wydrukowac na ekranie

ini_set('display_errors', '1');

$file = fopen('php://stdout', 'w');
fwrite($file, "test \n");

No niestety, ekran jest pusty. Za to w konsoli drukuje ladnie 'test'.
Czy nie da sie w ten sposob wywolac skryptu webowego, czy tylko zostaje echo lub
print ?

Re: uniwersalny writer

On Mon, 24 Jan 2011 14:35:17 +0100, smerf wrote:
Quoted text here. Click to load it

php://stdout does not send http headers, if the blank thing is a web

76. If the hero runs up to my roof, I will not run up after him and
    struggle with him in an attempt to push him over the edge. I will
    also not engage him at the edge of a cliff. (In the middle of a
    rope-bridge over a river of lava is not even worth considering.)

Re: uniwersalny writer

On 2011-01-24 21:43, Peter H. Coffin wrote:
Quoted text here. Click to load it

Thanks for your answer instead of I wrote in polish :)

Re: uniwersalny writer

On Tue, 25 Jan 2011 10:49:53 +0100, smerf wrote:
Quoted text here. Click to load it

Google's translation tools work well enough to get the meaning of the
question, but aren't good enough to compose an answer.

Cunningham's Second Law:
It's always more complex than you expect, even when you take
Cunningham's Second Law into account.

Site Timeline