ComputersProgramming

We learn together what a 'script'

This publication will consider the question of 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, such a term is called any executable procedure.

Programs-"scripts" have a more restricted concept. For example, Internet technologies offer the following meaning for this word: "This is an executable procedure that is launched by the server on a specific request, which 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 such programs is great.

With their help, a user of a personal computer can access a wide variety of databases, gaining the ability to monitor visitor statistics using special counters. Also here is leaving comments on certain publications, working with guest books (making records, wishes) and so on. Where is the "script"? Its location may be the server on which the web page is located, which refers to it. It is possible to place it as a remote Internet server.

Considering the fact that certain actions are performed when starting the "script", one should take into account that the implementation of such procedures can be both useful and harmful. In particular, this may 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 application of these programs are specified.

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 heard about them. It is possible that many people would like to know about the look and work of these programs. We will talk about what a "script-CGI" is, which is actually the program running on the Web server.

It is carried out, respectively, after the request of customers. By clients here are meant exactly the visitors of certain Web sites. In fact, the "CGI-script" is in some way similar to other computer programs, such as "Word" (MS Word) or "Explorer" (Explorer). Initially, it should be understood that "CGI" is not a programming language with the help of which "scripts" are written. The full name of this specialized interface is the "Common Gateway Interface". It is used to run scripts and to do further work.

Now back to the earlier statement: "The implementation of the described programs can carry a certain danger." As for "CGI scripts," they are no exception. It follows that when planning certain Internet projects, it is necessary to clarify the details of the execution of "CGI" on this or that server. Earlier it was said that on some Internet hosting providers providers may be prohibited or restricted execution of 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 opportunities to implement various usefulness.

The specificity of the "script-CGI" work: if you are the owner of a web resource, then visitors come to your site who leave comments and comments. In this case, they fill in the appropriate fields, and then click - "Send". 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 scrupulous study of the topic, there are special teaching materials.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.delachieve.com. Theme powered by WordPress.