我是靠谱客的博主 甜美盼望,这篇文章主要介绍查看所有的Server Variables的环境变量,现在分享给大家,希望可以做个参考。

下列代码保存为ASP文件就可以了

<table border=0 cellpadding=0 cellspacing=1 bgcolor="#d0c0F0">
<tr>
    <td><table border=0 cellpadding=3 cellspacing=0 bgcolor="#F0F0F8">
        <tR bgcolor="#d0c0f0">
         <td><b>Variable Name</b></td>
         <td><b>Value</b></td>
        </tr>
        <%
        With response
            For Each sKey In Request.ServerVariables
                .Write "<tR>" & vbCrLf
                .Write vbTab & "<td valign=""top""><b>" & sKey & "</b></td>" & vbCrLf
                .Write vbTab & "<td>" & Request.ServerVariables(sKey) & "</td>" & vbCrLf
                .Write "</tR>" & vbCrLf
            Next
        End With
        %>
     </table></td>
</tr>
</table>

最后

以上就是甜美盼望最近收集整理的关于查看所有的Server Variables的环境变量的全部内容,更多相关查看所有的Server内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(265)

评论列表共有 0 条评论

立即
投稿
返回
顶部