For knowing the concept of CGI, let us take a look at the scenario that takes place when users browse something on web using a specific URL.
If you are developing a web site and you required a CGI application to control then you can specify the name of the application in the URL (uniform resource locator) that you code in an HTML file.
Server Configuration
Before using the CGI programming, programmers should make sure that the Web server supports CGI and is well configured for handling CGI programs. By convention CGI files will have extension as .cgi, though they are C++ executable. By default, Apache Web Server is configured to run CGI programs in /var/www/cgi-bin. Programmers need to have a web server up and running in order to run any CGI program like Perl, shell etc.
0 Comments
If you have any doubts,please let me know