This publication will discuss what a script is. After studying this information, readers will get a general idea of the work of such programs. Some useful instructions on this topic will be offered. So, "scripts" are, first of all, programs or program files, scripts. In fact, this term refers to any executable procedure.
Programs, "scripts" have a more narrowed concept. For example, Internet technologies offer the following meaning of the word: "This is an executable procedure that is launched by a server on a specific request that comes from a specific page (web resource) of the Internet." Talking about what a "script" is in terms of its application, it should be clarified that the scope of use of such programs is great.
With their help, the user of a personal computer can access a variety of databases, gets the opportunity to monitor the statistics of visits using special counters. This also includes leaving comments on certain publications, working with guest books (making notes, wishes) and so on. Where is the "script" located? Its location may be the server that hosts the web page that accesses it. It is possible that such a placement as a remote Internet server .
Given the fact that certain actions are performed when the "script" is launched, it should be noted that the execution of such procedures can be both useful and harmful. In particular, this can pose a certain danger to server owners. Accordingly, on some of them it is forbidden to use "scripts". As a rule, the provider provides such an opportunity after the special conditions for the use of these programs are agreed.
Now let's talk about what a "script" is, and about its application in more detail. In fact, they are currently used on every web resource, and any more or less advanced user of a personal computer knows or has heard about them. It is possible that at the same time, many people wanted to learn about the appearance and operation of these programs. We will talk about what is a “script-CGI", which actually is a program that runs on a Web server.
It is carried out, respectively, after a customer request. By customers here we mean visitors to certain Web sites. In fact, the “CGI script” is somewhat similar to other computer programs, such as Word (MS Word) or Explorer (Explorer). Initially, it should be understood that "CGI" is not a certain programming language by which "scripts" are written. The full name of this specialized interface is "Common Gateway Interface". It is used to run "scripts" and conduct further work.
Now back to the earlier statement: "The implementation of the described programs can carry a certain danger." As for the "CGI-scripts", then they are no exception. It follows that when planning certain Internet projects, you should clarify the details of the implementation of "CGI" on a particular server. Earlier it was said that on some Internet hosting providers may be prohibited or limited to run such programs.
Especially often, restrictions on the use of "CGI" are observed on free hosting. This leads to the fact that the user is deprived of the opportunity to implement various utilities.
The specifics of the "script-CGI": if you are the owner of a web resource, then visitors who leave reviews and comments come to your site. At the same time, they fill in the appropriate fields, and then click - "Submit". After such manipulations, the data is sent to the Server, the "CGI script" is launched and the information is processed. The visitor at the same time sees that his comment appears on the page and receives a message like: "Your comment has been added, thank you!"
In fact, you now have a general idea of what a “script” is. For a more thorough study of the topic, there are special training materials.