V
V
Vladislav Bondarenko2017-03-22 22:09:49
PHP
Vladislav Bondarenko, 2017-03-22 22:09:49

What is CGI mode?

All the best. I wanted to switch the version of PHP on the hosting and saw that CGI scripts were enabled, I googled - I didn’t figure out what these scripts were at all. Please explain what it is and why you need it. I would be grateful for an answer.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
DevMan, 2017-03-22
@bvlad5

puff can/can interact with web servers in several modes: cgi/fastcgi/module/etc.
mostly used either module or fastcgi/fpm. cgi is a slower mode, but has its advantages over a module.

U
Uwe_Boll, 2017-03-22
@Uwe_Boll

download or buy Koterov's book php5 or php7 in the original and read IT from the very beginning

O
OnYourLips, 2017-03-22
@OnYourLips

The method of connecting programs to a web server was used in the 90s at the dawn of the Internet. Not relevant now.
https://en.wikipedia.org/wiki/CGI

S
Saboteur, 2017-03-23
@saboteur_kiev

Through CGI, you can connect any external handler that will return a result, so you can execute scripts in php / perl / python and executable binaries, the main thing is that they return the correct result, for example, html with the right headers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question