Mostrando Codigo - Asp
Mostrando las variables del servidor
Como listar todas las variables del servidor en una pagina web.
EXPLICACION
Con este sencillo script conseguimos mostrar todas las variables del servidor
utilizaremos ServerVariables
CODIGO
<% 'Codigo ofrecido por Tutores.org %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Mostrando las variables del servidor</title>
</head>
<body>
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="0">
<%
Dim strSV, intRowColor
For Each strSV In Request.ServerVariables
if intRowColor = 0 Then
Response.Write "<TR bgcolor=""#ddddfc"">"
intRowColor = 1
Else
Response.Write "<TR bgcolor=""#ffffff"">"
intRowColor = 0
End if
Response.Write "<TD> " & strSV & "=" & Request.ServerVariables(strSV) & "</TD></TR>"
Next
%>
</TABLE>
</body>
</html>
ENLACE AL CODIGO
Si quieres enlazar desde tu pagina a este codigo<!-- Inicio enlace Tutores.org -->
<a title="Tutores.org - Mostrando las variables del servidor" href="http://www.tutores.org/codigo/5/" target="_blank">Mostrando las variables del servidor</a>
<!-- Final enlace Tutores.org -->
<a title="Tutores.org - Mostrando las variables del servidor" href="http://www.tutores.org/codigo/5/" target="_blank">Mostrando las variables del servidor</a>
<!-- Final enlace Tutores.org -->
COMENTARIOS
Basualdo 28-11-2007 13:53:11
Me surprendio, captura hasta mi senha de acesso!!
jqk
el codigo va en el block de notas y se guarda en html..y despues que hay que hacer???
INSERTAR COMENTARIO











