Sign in | Join
Last post 12-28-2007 8:22 AM by digeeshs. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi,
I have a file that is outside the server location. How can I get the url of the physical path of the external file?
Thanks in advance.
A physical file that is outside the virtual directory folder has no accessible URL. If it did, then you'd be able to access all files on a web server.
That's right... you can however get the url of that file if you know the name of the website...
if you know that you're file is named c:\inetpub\www\mywebsite\somefolder\thisisyourfile.txt ... and your website is www.yoursitename.com .... having the mywebsite as your website or virtual directory...
then the location of your file thru url would be www.yoursitename.com/somefolder/thisisyourfile.txt
greets,
Erdem
mySrc =
this will give the url of the file.