What is Common Gateway Interface (CGI):-
CGI refers to the communication protocol by which a web server can communicate with other applications. For example, a CGI application, sometime called a 'script' is often used to allow web users to access database or to get information from forms that people fill out. CGI can also be used to create agents that do things such as check a website to see whether there are any broken links on the site.
CGI is a standard way in which the web interact with outside resources, such as a database.
In the example of providing information on a web page designed to accept user input, CGI performs many tasks. First, you submit some unique information- like a name or email address to the server for processing. Next, the server redirects the information to a CGI application that is called by the form 'submit'. CGI scripts are activated by the server in response to an http request from the client. Lastly, a CGI application may send form data to another computer program, such as a database, save it to a file or even generate a unique HTML document in response to the user request. This is known as an interactive form.
CGI संचार प्रोटोकॉल को संदर्भित करता है जिसके द्वारा एक वेब सर्वर अन्य अनुप्रयोगों के साथ संचार कर सकता है। उदाहरण के लिए, एक सीजीआई एप्लिकेशन, जिसे कभी-कभी 'स्क्रिप्ट' कहा जाता है, का उपयोग अक्सर वेब उपयोगकर्ताओं को डेटाबेस तक पहुंचने या लोगों द्वारा भरे जाने वाले फॉर्म से जानकारी प्राप्त करने की अनुमति देने के लिए किया जाता है। CGI का उपयोग ऐसे एजेंट बनाने के लिए भी किया जा सकता है जो यह देखने के लिए वेबसाइट की जाँच करते हैं कि साइट पर कोई टूटी हुई कड़ियाँ हैं या नहीं।
सीजीआई एक मानक तरीका है जिसमें वेब बाहरी संसाधनों, जैसे डेटाबेस के साथ इंटरैक्ट करता है।
0 Comments