FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: uniwersalny writer
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: uniwersalny writer [message #171982 is a reply to message #171978] Tue, 25 January 2011 09:49 Go to previous messageGo to previous message
smerf is currently offline  smerf
Messages: 12
Registered: January 2011
Karma:
Junior Member
On 2011-01-24 21:43, Peter H. Coffin wrote:
> On Mon, 24 Jan 2011 14:35:17 +0100, smerf wrote:
>> chce napisac uniwersalnego writera piszacego na ekran albo do pliku.
>> sadze ze takie cos powinno wydrukowac na ekranie
>>
>> <?php
>> ini_set('display_errors', '1');
>> error_reporting(E_ALL);
>>
>> $file = fopen('php://stdout', 'w');
>> fwrite($file, "test \n");
>> fclose($file);
>> ?>
>>
>
>> 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 ?
>
> php://stdout does not send http headers, if the blank thing is a web
> page.
>

Thanks for your answer instead of I wrote in polish :)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: is_a vs. instanceof()?
Next Topic: Implement Php performace
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:56:58 GMT 2024

Total time taken to generate the page: 0.05066 seconds