如何修改server.mappath的路径
答案:2 悬赏:60 手机版
解决时间 2021-03-18 01:39
- 提问者网友:情歌越听越心酸
- 2021-03-17 15:23
如何修改server.mappath的路径
最佳答案
- 五星知识达人网友:狂恋
- 2021-03-17 15:38
Server.MapPath(path) The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server. Parameters (MSDN:ms-help://MS.MSDNQTR.2003FEB.2052/iisref/htm/ref_vbom_serommp.htm) 用法...
全部回答
- 1楼网友:深街酒徒
- 2021-03-17 16:53
服务器为了保证安全性,关闭了父路径,也就是说,不允许使用如 ../public/index.htm 这样一类的 ../来表示父路径。
如果你是在普通页面需要include的话,则可以输入完整的地址,如 http://www.abc.com/public/count.asp
如果是在页面的数据库文件里的时候,需要用 server.mappath & abc.mdb 这样的形式来加数据库路径
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯