Nepedia
Back to Discover
Independent Reader
💻

Common Gateway Interface

technology Maturity 9-11 Next article →

Web pages can do more than show pictures. They can talk to you! This happens through a tool called CGI. CGI stands for Common Gateway Interface. It acts like a bridge or a gateway. It connects a web server to other computer systems.

Common Gateway Interface logo
Common Gateway Interface logo

Here is how the way works. First, a user fills out a form on a page. When they click submit, the data goes to the web server. The server then starts a new program called a CGI script. This script is a set of steps that processes the data. The script makes a new page, often using HTML. The server then sends this new page back to your browser.

CGI was made in the early 1990s. It was the first way to make web pages interactive. People used it to connect databases to the web. However, CGI can be slow. This is because the server must start a new process for every single request. It must also destroy that process when it is done. This uses a lot of computer power. Because of this, people made new ways to handle web data.

185 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Common Gateway Interface logo.svg
Common Gateway Interface logo.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.