开发者

get path to an included file on Classic ASP?

开发者 https://www.devze.com 2023-01-07 16:53 出处:网络
I have a file that is being included, in that file there\'s Server.MapPath(\'../_data\") which doesn\'t work

I have a file that is being included, in that file there's

Server.MapPath('../_data") which doesn't work

since that file included is not in the same Server.MapPath as the file executed.

any Idea of how I can get the included file's path?

To clarify the situation, I added a picture

get path to an included file on Classic ASP?

As you can see, I'm including a file from one site to the other

(no other choice there), so that the server.mappath is intended to be different, though

the result is that on the included file 开发者_Python百科I get the mappath of the executed file.


You should better use relative paths.

Relative paths start with / which means start from the root of the site..

0

精彩评论

暂无评论...
验证码 换一张
取 消