Recommended: parse script execution order in ASP If the computer room is about to close, or if you are in a hurry to date a MM, please jump directly to the fourth paragraph. The scripts described below include server-side scripts and client-side scripts. Server-side scripts refer to the part of scripts running on the server, such as the common Respon
Common detection codes used when writing ASP web pages:
Server Current Time:
Quote
<% =now %>
Server CPU model:
Quote
<%=Request.ServerVariables(HTTP_UA_CPU)%>
Current resolution:
Quote
<% =Request.ServerVariables(HTTP_UA_PIXELS)%>
Color can be displayed:[qoute]<%=Request.ServerVariables(HTTP_UA_COLOR)%>[/quote]
Server address:
Quote
<%=Request.ServerVariables(SERVER_NAME)%>
Server accepts language:
Quote
<%=Request.ServerVariables(HTTP_ACCEPT_LANGUAGE)%>
Visitor I:P
Quote
<%=Request.ServerVariables(REMOTE_ADDR)%>
Visitor browser version and system:
Quote
<%=Request.ServerVariables(HTTP_USER_AGENT)%>
The server accepts files:
Quote
<%=Request.ServerVariables(HTTP_ACCEPT)%>
WEB server software and version information:
Quote
<%=Request.ServerVariables(SERVER_SOFTWARE)%>
Routing port:
Quote
<%=Request.ServerVariables(REMOTE_PORT)%>
Server http port:
Quote
<%=Request.ServerVariables(LOCAL_PORT)%>
WEB directory name:
Quote
<%=Request.ServerVariables(APPL_PHYSICAL_PATH)%>
Current WEB page location:
Quote
<%=Request.ServerVariables(PATH_TRANSLATED)%>
Request method:
Quote
<%=Request.ServerVariables(REQUEST_METHOD)%>
Transmission protocol:
Quote
<%=Request.ServerVariables(SERVER_PROTOCOL)%>
Share: How to Format ASP Pagination and Date to RFC822 Format Calculate the page, hehe, you don’t have to judge the following referenced content: intNumPage = Abs(Int(-(intNumRecord/intPerPage))) Format the date