标签: c# php document-root
我正在使用c#转换PHP代码,并想知道c#中的等价物。
我想我可以使用:
HttpContext.Current.Request.ServerVariables["PARAM"]
但不确定哪个“PARAM”需要使用,链接下面有所有参数列表: -
http://www.w3schools.com/asp/coll_servervariables.asp
答案 0 :(得分:0)
也许使用ASP MapPath方法?
Doc:http://www.w3schools.com/asp/met_mappath.asp