Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Jan G.B.
2010/3/24 Marten Lehmann > Hello, > > > dan...@daniel-laptop:~$ php test.php> /dev/null >> Error 1 >> Error 2 >> dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php> >> /dev/null >> Error 1 >> Error 2 >> > > well, using php-cli instead of php-cgi, this finally worked: > > fwrite(ST

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Daniel Egeberg
On Wed, Mar 24, 2010 at 14:12, Marten Lehmann wrote: > Hello, > >> dan...@daniel-laptop:~$ php test.php>  /dev/null >> Error 1 >> Error 2 >> dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php>  /dev/null >> Error 1 >> Error 2 > > well, using php-cli instead of php-cgi, this finally wor

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Marten Lehmann
Hello, dan...@daniel-laptop:~$ php test.php> /dev/null Error 1 Error 2 dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php> /dev/null Error 1 Error 2 well, using php-cli instead of php-cgi, this finally worked: But why doesn't it work with php-cgi? That's a binary that is calle

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
On Tue, Mar 23, 2010 at 15:50, Jan G.B. wrote: > > > 2010/3/23 Daniel Egeberg >> >> On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote: >> > Hello, >> > >> > I found different code examples like this, which use the file handle >> > STDERR >> > just like this: >> > >> > > > fwrite(STDERR, "hello

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
2010/3/23 Daniel Egeberg > On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote: > > Hello, > > > > I found different code examples like this, which use the file handle > STDERR > > just like this: > > > > > fwrite(STDERR, "hello\n"); > > ?> > > > > Also, the PHP documentation of input/output st

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote: > Hello, > > I found different code examples like this, which use the file handle STDERR > just like this: > > fwrite(STDERR, "hello\n"); > ?> > > Also, the PHP documentation of input/output streams > (http://php.net/manual/de/wrappers.php.php)

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
2010/3/23 Marten Lehmann > Hello, > > I found different code examples like this, which use the file handle STDERR > just like this: > > fwrite(STDERR, "hello\n"); > ?> > > Also, the PHP documentation of input/output streams ( > http://php.net/manual/de/wrappers.php.php) says: > > "It is recommen

[PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Marten Lehmann
Hello, I found different code examples like this, which use the file handle STDERR just like this: Also, the PHP documentation of input/output streams (http://php.net/manual/de/wrappers.php.php) says: "It is recommended that you simply use the constants STDIN, STDOUT and STDERR instead