以下为引用的内容: <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>asp路径详细例子-烈火建站学院(liehuo.net)</title> </head> <body> 应用程序根目录:<br /> Server.MapPath("/")---><%=Server.MapPath("/")%> <br /><hr /> 所在页面的当前目录:<br /> Server.MapPath("./")---><%=Server.MapPath("./")%> <br /> Server.MapPath(".")---><%=Server.MapPath(".")%> <br /><hr /> 所在页面的当前目录:<br> Server.MapPath("../")---><%=Server.MapPath("../")%> <br /> Server.MapPath("..")---><%=Server.MapPath("..")%> <br /><hr /> 虚拟目录的根目录:<br> Request.ServerVariables("APPL_PHYSICAL_PATH")---><%=Request.ServerVariables("APPL_PHYSICAL_PATH")%> <br /><hr /> 当前页的路径:<br> Server.MapPath(Request.ServerVariables("PATH_INFO"))---><%=Server.MapPath(Request.ServerVariables("PATH_INFO"))%> </body> </html> |