'asp获取当前文件在服务器上的全路径
getpath_frist=split(right(request.ServerVariables("URL"),len(request.ServerVariables("URL"))-1),"/")
for ii=lbound(getpath_frist) to ubound(getpath_frist)-1
getpath_full=getpath_full&"/"&getpath_frist(ii)
next
fullurlpath="http://"&request.ServerVariables("HTTP_HOST")&getpath_full&"/"
response.Write(fullurlpath)
本文介绍了一段ASP代码,该代码能够获取当前文件在服务器上的完整路径。通过使用Request对象和ServerVariables集合,结合字符串操作函数,最终输出完整的URL路径。
1163

被折叠的 条评论
为什么被折叠?



