YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > ASP
검색
멤버이름    오토
비밀번호 
 

ASP INFO

페이지 정보

작성자 MintState 댓글 0건 조회 5,827회 작성일 09-10-20 23:34

본문

ASP INFO

phpinfo()와 같은 형식으로 출력 해주는 소스

<%
aspinfo()
Sub aspinfo()
Dim strVariable, strASPVersion
Dim strCookie, strKey, strSession
'ASP 버전 정보
strASPVersion = ScriptEngine & " Version " & _
ScriptEngineMajorVersion & "." & _
ScriptEngineMinorVersion
%>
<HTML>
<HEAD>
<style type="text/css"><!--
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: arial, helvetica, sans-serif; font-size: 18pt; font-weight: bold;}
h2 { font-family: arial, helvetica, sans-serif; font-size: 14pt; font-weight: bold;}
body, td { font-family: arial, helvetica, sans-serif; font-size: 10pt; }
th { font-family: arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; }
//--></style>
<TITLE>aspinfo()</TITLE></HEAD>
<BODY>
<DIV align="center">

<TABLE width="80%" border="0" bgcolor="#000000" cellspacing="1" cellpadding="3">
	<TR>
		<TD align="center" valign="top" bgcolor="#FFFFAE" align="left" colspan="2">
			<H3>ASP (<%= strASPVersion %>)</H3>
		</TD>
	</TR>
</TABLE>
<BR>
<HR>
<BR>
<H3>Server Variables</H3>
<TABLE width="80%" border="0" bgcolor="#000000" cellspacing="1" cellpadding="3">
<%
For Each strVariable In Request.ServerVariables
		Response.write("<TR>")
		Response.write("<TH width=""30%"" bgcolor=""#FFFFAE"" align=""left"">" & strVariable & "</TH>")
		Response.write("<TD bgcolor=""#FFFFD9"" align=""left"">" & Request.ServerVariables(strVariable) & " </TD>")
		Response.write("</TR>")
Next 'strVariable
%>
</TABLE>
<BR>
<HR>
 <BR>
<H3>Cookies</H3>
<TABLE width="80%" border="0" bgcolor="#000000" cellspacing="1" cellpadding="3">
<%
For Each strCookie In Request.Cookies
		if Not Request.Cookies(strCookie).HasKeys Then
				Response.write("<TR>")
				Response.write("<TH width=""30%"" bgcolor=""#FFFFAE"" align=""left"">" & strCookie & "</TH>")
				Response.write("<TD bgcolor=""#FFFFD9"" align=""left"">" & Request.Cookies(strCookie) & " </TD>")
				Response.write("</TR>")
		Else
				For Each strKey In Request.Cookies(strCookie)
						Response.write("<TR>")
						Response.write("<TH width=""30%"" bgcolor=""#FFFFAE"" align=""left"">" & strCookie & "(" & strKey & ")</TH>")
						Response.write("<TD bgcolor=""#FFFFD9"" align=""left"">" & Request.Cookies(strCookie)(strKey) & " </TD>")
						Response.write("</TR>")
				Next
		End if
Next
%>
</TABLE>
<BR>
<HR>
<BR>
<H3>Session Cookies</H3>
<TABLE width="80%" border="0" bgcolor="#000000" cellspacing="1" cellpadding="3">
<%
For Each strSession In Session.Contents
		Response.write("<TR>")
		Response.write("<TH width=""30%"" bgcolor=""#FFFFAE"" align=""left"">" & strSession & "</TH>")
		Response.write("<TD bgcolor=""#FFFFD9"" align=""left"">" & Session(strSession) & " </TD>")
		Response.write("</TR>")
Next
%>
</TABLE>
<BR>
<HR>
<BR>
<H3>Other variables</H3>
<TABLE width="80%" border="0" bgcolor="#000000" cellspacing="1" cellpadding="3">
	<TR><TH width="30%" bgcolor="#FFFFAE" align="left">Session.sessionid</TH><TD bgcolor="#FFFFD9"><%= Session.sessionid %></TD></TR>
	<TR><TH width="30%" bgcolor="#FFFFAE" align="left">Server.MapPath</TH><TD bgcolor="#FFFFD9"><%= Server.MapPath ("/") %></TD></TR>
</TABLE>

</DIV>
</BODY>
</HTML>
<%
End Sub
%>

댓글목록

등록된 댓글이 없습니다.

Total 5건 1 페이지
ASP 목록
번호 제목 글쓴이 조회 날짜
5 MintState 6324 05-24
4 MintState 5270 05-24
3 MintState 6548 04-12
2 MintState 5553 10-21
열람중 MintState 5828 10-20
게시물 검색

모바일 버전으로 보기
CopyRight ©2004 - 2018, YesYo.com MintState. ™