1、 Concept of dynamic webpage
The webpage with various animations, rolling captions and other visual "dynamic effects" is not a dynamic webpage Website production Whether it has a visual dynamic effect, as long as the pages generated by dynamic website technology are called dynamic pages. Dynamic web pages can be pure text content. They can also contain various animated content, which is just the manifestation of the specific content of the web page.
Dynamic web pages correspond to static web pages. Static web pages are based on htm html .. shtml .. XML files with an extension are written in HTML language. They are composed of many tags and stored somewhere on the server. When the user needs it, the server does not need any explanation and sends it directly to the user. The user can browse directly by using the browser.
Dynamic web pages usually use. asp, jsp PHP,. pert,. cgi and other files with expanded names. Dynamic web pages cannot be sent directly because the browser does not support them. When it is necessary to browse a dynamic web page, the server will interpret or compile these dynamic web page code programs, convert the results into HTML code, and then send them to the user's browser. The changing nature of a web page is the reason why it is called dynamic. Dynamic web pages are generally based on database technology. Our daily operations on some websites, such as user registration, user login, online survey, uploading files, posting messages, and forum discussion, are all based on the technology of dynamic web pages.
2、 Types of dynamic web page technology
There are many kinds of dynamic web page technologies, such as CGI, ASP, JSP, PHP, etc. Today, ASP and JSP are basically formed PHP has a tripartite confrontation.
(1) ASP technology. ASP technology is the product of Microsoft, mainly including ASP and ASP NET technology. The former takes. asp as the file extension, and the latter takes. aspx as the file extension. In ASP, the main language used is VBScript server program language. In fact, it is a subset of VB: in ASP NET. You can use VB, C. C # and other languages to write ActiveX controls. Because it is a product of Microsoft, it has a natural connection with its Windows operating system, Access, and SQLServer database, so it has great support.
(2) JSP technology. 1SP technology is a product of SUN. Its extension is. jsp, and its foundation is SUN's JAVA language. It is based on JVM, Servlet, JAVABean and other technologies. Because its display and business logic can be separated and cross platform, its development momentum is rapid. At present, it has become the preferred technology for many large e-commerce websites at home and abroad
(3) PHP technology. PHP technology is an open source project with an extension of. php. The basic language is PHP. It mainly borrows the syntax of Java, C, Perl and other languages. Because it is open source and easy to learn, it has many supporters.
3、 Create ASP program
Microsoft Active Server Pages, commonly known as ^ SP, is actually a set of server script environment developed by Microsoft. Through ASP, you can combine HTML pages, ASP instructions and ActiveX components to create dynamic Interactive and efficient web server application. With ASP, you don't have to worry about whether the client's browser can run the code you wrote, because all the programs will be executed at the server side. After the program is executed, the server only returns the execution result to the client browser, which reduces the burden of the client browser and greatly improves the interaction speed
ASP itself is not a scripting language, It only provides a way to inlay {The environment in which the script program in the TML page can run. ASP programs can use JScript and VBScript script language as the server script language, but in practical applications, VBScript is generally used as the server script language. At the same time, the server script recognized by US is also VBScript. However, you can also change the default script language of the system according to your own preferences.
ASP programs exist on the Web server in plain text form with the extension. asp. You can open it with any text editor. ASP programs can contain plain text, HTML tags and script commands. You just need to put the. asp program in the virtual directory of the Web server (the directory must have executable permissions), and you can access the ASP program T
Server side script: Since the server side script language needs to be executed on the server side, and the default execution place of the script language is the browser on the client side, special flags are needed to indicate which code needs to be executed on the server side. There are two ways to specify that the scripting language is executed on the server side.