Home  >  Article  >  Web Front-end  >  what is script

what is script

清浅
清浅Original
2019-05-14 11:11:356087browse

A script uses a specific descriptive language and is an executable file written in a certain format. In fact, a script is a program. It is an extension of a batch file and a program that saves plain text.

what is script

What is a script?

1. A script uses a specific descriptive language, based on a certain Executable files written in Macro format, also known as macros or batch files. Scripts can often be called and executed ad hoc by applications. Various scripts are currently widely used in web design, because scripts can not only reduce the size of web pages and improve web browsing speed, but also enrich the performance of web pages, such as animations, sounds, etc.

2. Dynamic programs generally have two implementation methods, one is binary method and the other is script method.

The binary method is to first compile the program we wrote into a machine-recognizable instruction code (such as an .exe file), and then execute it. We can only execute and use this compiled program, but we cannot see its program content.

A script is simply a text command. These text commands are what we can see (for example, you can use Notepad to open them for viewing and editing). When the script program is executed, it is interpreted by the system. The processor translates them one by one into machine-recognizable instructions and executes them in program order. Because the script has an additional translation process during execution, its execution efficiency is slightly lower than that of binary programs.

The various dynamic languages ​​we mentioned above, such as ASP, PHP, CGI, JSP, etc., are all scripting languages. According to the current service rules, virtual host websites can only be implemented using scripting languages.

3. Script is actually a program, usually a programming language provided by an application. Applications include browsers (javascript, VBScript), multimedia creation tools, application macros and batch processing languages ​​of the creation system can also be classified as scripts. The main differences between scripts and the VB and C languages ​​we usually use are: script syntax is relatively simple and easy to master; scripts are closely related to applications, so they include functions relative to the application itself; scripts are generally not versatile and can handle The scope of the problem is limited. A script is a source program, a code program.

4. Script is an extension of the batch file and is a program saved in plain text. Generally speaking, a computer script program is a combination of a determined series of actions that control the computer to perform computing operations. Certain logical branches can be implemented, etc. Compared with general program development, script programs are closer to natural language and can be interpreted and executed without compilation, which is conducive to rapid development or some lightweight control.

There are many scripting languages ​​now. The execution of general scripting languages ​​is only related to the specific interpretation executor, so as long as there is an interpreter of the corresponding language on the system, it can be cross-platform.

The above is the detailed content of what is script. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more