Re: [PHP] STDERR not opened with php 5.0.5

2005-09-13 Thread Edin Kadribasic
Hi, Perhaps your /usr/local/bin/php505 is a cgi instead of cli? Edin Florent Monnier wrote: Hi, on http://www.php.net/manual/en/features.commandline.php is writen: STDERR - An already opened stream to stderr. This saves opening it with: ?php $stderr = fopen('php://stderr', 'w'); ?

[PHP] STDERR not opened with php 5.0.5

2005-09-09 Thread Florent Monnier
Hi, on http://www.php.net/manual/en/features.commandline.php is writen: STDERR - An already opened stream to stderr. This saves opening it with: ?php $stderr = fopen('php://stderr', 'w'); ? But this does not work: #! /usr/local/bin/php505 -q ?php fwrite(STDERR, error!\n); ? This does work: #!