May 8, 2001, 11:26 AM
Post #8 of 8
STDIN, STDOUT, and STDERR are all used in CGI scripts as well as console programs. With CGI scripts, the web server that executes your CGI scripts will send all CGI params to you script's STDIN for it to read. And then it will get all output from the script's STDOUT and return it as the response to the browser. Depending on the web server, any errors or warnings printed to STDERR will either get printed with your STDOUT as part of the response, or it will be ignored or logged in a log file. That's how it usually works.