+ 1

Can any one describe what is cgi programming how it is run in my pc?

need full description with example

23rd Nov 2016, 4:04 AM
rakeshdas
rakeshdas - avatar
1 Réponse
+ 1
It is hard to explain this concept without the use of images, but I'll try my best. CGI stands for Common Gatweway Interface. It acts as a medium between your computer (called the client) and the server and is used to generate dynamic content and interaction with the database. When the client sends a request like "here are my login details, log me in" the CGI queries the database with the information and sends back the result in the form of a HTML page, now this is the best part. Do you know the difference between programming languages and scripting languages. Programming languages are harder to write but can be run without needing any additional software. Scripting languages are really easy to code but requires an additional software installed on the machine to run. The CGI are most commonly written in scripting languages. The required software is Installed on the server. A request comes, gets processed, and the response is sent in the form of HTML. So no software is required on the user computer as the response being sent is plain HTML. This also improves the security as there is no way to look at the code being run at the server but you can look at the client side code using developer tools provided in most browsers.
25th Nov 2016, 2:07 AM
Nikunj Arora
Nikunj Arora - avatar