Asp
共 1 篇文章
asp获取站点路径
Response.Write "http://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("SCRIPT_NAME") 提醒下,比如www.2244.cn IP是219.240.139.86 但是在XP下的IIS可能是219.240.139.86/2244 这里的Request.ServerVariables("SCRIPT_NAME") 就可以算出2244了,不过真正的开发用Request.ServerVariables("HTTP_HOST") 就OK了
2009-07-21 10:44 · Asp · ASP · IIS · XP