manishrathi
Programmer
I have CGI on Apache server. When a request comes in for this CGI, server invokes CGI and output is sent back to the client.
When I was reading book on CGI, this sentence I could not understand. "Once CGI program starts running, it sends its output back to the web server via standard output."
CGI is already on the server and thats where it runs. So where is the question of sending output "back to web server" ? STDOUT sends output on the terminal. So if I am working on server, then on that terminal, output will come. I am on a different terminal than server and sending request from this terminal. In this case, output is sent to client terminal. Is it still standard output ?
Pls explain.
When I was reading book on CGI, this sentence I could not understand. "Once CGI program starts running, it sends its output back to the web server via standard output."
CGI is already on the server and thats where it runs. So where is the question of sending output "back to web server" ? STDOUT sends output on the terminal. So if I am working on server, then on that terminal, output will come. I am on a different terminal than server and sending request from this terminal. In this case, output is sent to client terminal. Is it still standard output ?
Pls explain.