Hi Toby:

Yes, that's the way I did, but it's not so clean, you have to open each time you
write!
-- 
Saludos, Rubén Blanco.
______________________________________________________
A  r  t  e  k  -  928.52.20.77  -  http://www.artek.es



>> >One thing that occurs to me -- stdout starts off by being
>the browser, so
>> >it's kinda funky to open it -- You've already got it
>open...  I *think* it
>> >really only makes sense to fopen() stdout from the
>command line.  At least,
>> >I'm not clear on what it would mean to open it from a
>HTTP environment...
>>
>> You may be right, it's quite weird. The use it was
>intended for was to generate
>> an HTML page on the fly or a static one, according to
>certain conditions.
>
>Perhaps, then, you might use a function which would decide
>what to do and use the appropriate method... for ex:
>
>function foo($out) {
>    if (USE_STDOUT) {
>        echo $out;
>    } else
>
>        fopen($file, $mode);
>        // write to file and close it
>    }
>}
>
>Just an idea; may not be anything like what you need but I
>thought I'd throw it out there ;)

--Toby

-- 
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