📄 aspcheck.asp
字号:
<td align=left> 本文件路径</td>
<td> <%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%></td>
</tr>
<tr bgcolor="#E8F1FF" height=18>
<td align=left> 服务器CPU数量</td>
<td> <%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%>
个</td>
</tr>
<tr bgcolor="#E8F1FF" height=18>
<td align=left> 服务器解译引擎</td>
<td> <%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr>
<tr bgcolor="#E8F1FF" height=18>
<td align=left> 服务器操作系统</td>
<td> <%=Request.ServerVariables("OS")%></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<font class=fonts>组件支持情况</font>
<%
Dim strClass
strClass = Trim(Request.Form("classname"))
If "" <> strClass then
Response.Write "<br>您指定的组件的检查结果:"
ObjTest(strClass)
If Not IsObj then
Response.Write "<br><font color=red>很遗憾,该服务器不支持 " & strclass & " 组件!</font>"
Else
Response.Write "<br><font class=fonts>恭喜!该服务器支持 " & strclass & " 组件。该组件版本是:" & VerObj & "</font>"
End If
Response.Write "<br>"
end if
%>
<br>
■ IIS自带的ASP组件
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="500">
<tr height=18 class=backs align=center>
<td width=320>组 件 名 称</td>
<td width=130>支持及版本</td>
</tr>
<%For i=0 to 10%>
<tr height="18" class=backq>
<td align=left> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left>
<%
If Not ObjTotest(i,2) Then
Response.Write "<font color=red><b>×</b></font>"
Else
Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
End If%>
</td>
</tr>
<%next%>
</table>
<br>
■ 常见的文件上传和管理组件
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="500">
<tr height=18 class=backs align=center>
<td width=320>组 件 名 称</td>
<td width=130>支持及版本</td>
</tr>
<%For i=11 to 15%>
<tr height="18" class=backq>
<td align=left> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left>
<%
If Not ObjTotest(i,2) Then
Response.Write "<font color=red><b>×</b></font>"
Else
Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
End If%>
</td>
</tr>
<%next%>
</table>
<br>
■ 常见的收发邮件组件
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="500">
<tr height=18 class=backs align=center>
<td width=320>组 件 名 称</td>
<td width=130>支持及版本</td>
</tr>
<%For i=16 to 23%>
<tr height="18" class=backq>
<td align=left> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left>
<%
If Not ObjTotest(i,2) Then
Response.Write "<font color=red><b>×</b></font>"
Else
Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
End If%>
</td>
</tr>
<%next%>
</table>
<br>
■ 图像处理组件
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="500">
<tr height=18 class=backs align=center>
<td width=320>组 件 名 称</td>
<td width=130>支持及版本</td>
</tr>
<%For i=24 to 25%>
<tr height="18" class=backq>
<td height="39" align=left> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left>
<%
If Not ObjTotest(i,2) Then
Response.Write "<font color=red><b>×</b></font>"
Else
Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
End If%>
</td>
</tr>
<%next%>
</table>
<br>
<font color="#000000" class=fonts>其他组件支持情况检测</font><br>
在下面的输入框中输入你要检测的组件的ProgId或ClassId。
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="500">
<form action=<%=Request.ServerVariables("SCRIPT_NAME")%> method=post id=form1 name=form1>
<tr height="18" class=backq>
<td align=center height=30>
<input class=input type=text value="" name="classname" size=40>
<input type=submit value=" 确 定 " class=backc id=submit1 name=submit1>
<input type=reset value=" 重 填 " class=backc id=reset1 name=reset1>
</td>
</tr>
</form>
</table>
<br>
<font class=fonts>ASP脚本解释和运算速度测试</font><br>
我们让服务器执行50万次“1+1”的计算,记录其所使用的时间。
<table class=backq border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#6B8FC8" width="499">
<tr height=18 class=backs align=center>
<td width=351>服 务 器</td>
<td width=142>完成时间</td>
</tr>
<tr height=18>
<td align=left width="351"> 中国频道虚拟主机(2002-08-06
9:29)</td>
<td width="142"> 610.9 毫秒</td>
</tr>
<tr height=18>
<td align=left width="351"> 西部数码west263主机(2002-08-06
9:29)</td>
<td width="142"> 357.8 毫秒</td>
</tr>
<tr height=18>
<td align=left width="351"> 商务中国虚拟主机(2002-08-06
9:29)</td>
<td width="142"> 353.1 毫秒</td>
</tr>
<tr height=18>
<td align=left width="351"> 顶尖科技tonydns主机(2002-10-13
14:19)</td>
<td width="142"> 303.2 毫秒</td>
</tr>
<form action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method=post>
<%
'感谢网际同学录 http://www.5719.net 推荐使用timer函数
'因为只进行50万次计算,所以去掉了是否检测的选项而直接检测
dim t1,t2,lsabc,thetime
t1=timer
for i=1 to 500000
lsabc= 1 + 1
next
t2=timer
thetime=cstr(int(( (t2-t1)*10000 )+0.5)/10)
%>
<tr height=18>
<td align=left width="351"> <font color=red>您正在使用的这台服务器</font> </td>
<td width="142"> <font color=red><%=thetime%>
毫秒</font></td>
</tr>
</form>
</table>
<p> </p></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="12v" background="../images/back_3.gif" width="9" rowspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -