J
JJ
I'm confused about paths.
I have a functionn that uses the mappath method, which I think requires a
virtual path (is that the same as a relative path?).
But this doesn't always work as the path can take the form of the following:
1. /directory/images/xyz.gif (works fine)
2. http://localhost:1234/www.mytestwebsite.com/directory/images/xyz.gif
(doesn't work)
3. http:///www.someremotesite.com/directory/images/abc.gif (doesn't work)
So my questions are:
a) How can I check to see if the url is a virtual one or not?
b) How to I make a url virtual or relative?
c) How do I check if the url is refering to a file on the local server?
(with part c I assume I would check to see if the url contains the local
root domain? but I am unsure how I obtain the root domain?)
Thanks in advance,
JJ
I have a functionn that uses the mappath method, which I think requires a
virtual path (is that the same as a relative path?).
But this doesn't always work as the path can take the form of the following:
1. /directory/images/xyz.gif (works fine)
2. http://localhost:1234/www.mytestwebsite.com/directory/images/xyz.gif
(doesn't work)
3. http:///www.someremotesite.com/directory/images/abc.gif (doesn't work)
So my questions are:
a) How can I check to see if the url is a virtual one or not?
b) How to I make a url virtual or relative?
c) How do I check if the url is refering to a file on the local server?
(with part c I assume I would check to see if the url contains the local
root domain? but I am unsure how I obtain the root domain?)
Thanks in advance,
JJ