Java How to convert files to hexadic

2023-01-30  

Generally speaking, the page of the website is divided into two types: static page and dynamic page. The file extension of the static page is generally.htmor.html, the file extension of the dynamic page is generally.asp.aspx.php.jspor.shtmland so on.

The advantage of the

Static page is that the access speed is fast, but the disadvantage is that the content is inconvenient, and the interaction between the website and the user cannot be achieved.

dynamic page can be divided into interactive dynamic pages and broadcast dynamic pages according to its function. Interactive dynamic pages are generally unable to replace static pages in terms of function, while the broadcast dynamic pages are similar to static pages in terms of function, but they can show the information of the webpage to users one direction. In the purpose of using the broadcast dynamic page to read information from the database in real time through the script, it is very convenient to develop information from the database. The content of the page may not be updated once a month, whichISPOperators and users are not good, so it is only applicable to websites with few visits. Usually large websites are to generate static pages through webpage release systems and design related web templates, but the problem of this method is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is that the problem is The cost is too high (usually the price of the webpage publishing system is more expensive), and the design of the web templates does not meet the usual dynamic page script programming habits, which is difficult to use by the development of small websites.

The following introduces a pseudo -static page technology that improves the access speed of the website. It optimizes the broadcast dynamic page in form. It can be close to or achieve the effect of the webpage publishing system, and it has the following advantages:

1,Do not change the external structure of the website

Application this technology does not change the external interface of the website page, and does not modify the link relationship between any page in the website.

2,Do not change the original development habits of programmers

Application of this technology only needs to modify the original page very small, and almost no change of the original code, so as tohttp://www.greatengine.com/DownLoad/index.aspas an example, the specific operation is as follows:

1、  Open the browser and knock in in the address bar:http://www.greatengine.com/DownLoad/index.asp, choose to view->source file, save the content of the web page todownload_index.htm, then upload the file to

The directory whereindex.aspis located;

2、  The content ofindex.aspis changed to:

<%If Request(“Ref”)=”1″ Then%>

<Original code segment>

<%Else%>

<!–#include file=”download_index.htm“–>

<%End If%>

3、  Open the browser and knock in in the address bar:http://www.greatengine.com/DownLoad/index.asp, the page you see at this time is actually

The content ofdownload_index.htm, if you need to update the page content, you only need to knock in in the address bar:http://www.greatengine.com/DownLoad/index.asp?Ref=1, choose to view->source file, save the content of the web page todownload_index.htm, then upload the file to the website covering the original file.

For all broadcast dynamic pages, this technology can be optimized. The content of the update page only needs to beURLLast addRef=1, but if the originalURLhas other parameters, such as:http://www.greatengine.com/product_doc/index.asp?SoftID=1&TotalPage=7, yes

The modification ofindex.aspis more complicated. You need to judge the corresponding parameters to contain the corresponding static page.

3,can make a low -cost webpage release system

If the steps are repeated by programming

The process of2can establish a low -cost web release system.

Yancheng Studio

http://www.greatengine.com

source

Related Posts

How to download with JS for file download

Create uboot environment variable BIN file

jumpserver docker-compose deployment file yunson

bzoj 4012: [hnoi2015] Opening the store -dynamic tree division governance

Java How to convert files to hexadic

Random Posts

bzoj 2458 bepijing2011 minimum triangle calculation geometry+division

HDU5536 Chip Factory 【01 dictionary tree】

STM32F030CT86 timer 3 channel 1 to verify the PWM front and rear cut mode

jvm tuning command-JMAP

C# Partial Class usage