In addition to my previous reply I wanted to
make it clear what a CGI script is. They get their input in a couple of
ways but the one that is relevant here is Standard Input. Output is
written to Standard Output. And the PHP compiler does that; it just
reads Standard Input (then executes PHP code) and writes to Standard
Output. See the following for samples of CGI scripts in other languages. Andrey Repin wrote on 3/25/2021 2:06 AM: CGI is a protocol of exchanging information between client and server. |