jo***************@hotmail.com wrote:
Hi;
I am writing an html page that will live on one server in an ms windows
network, but access pictures from a directory on another ms windows
server in the network.
I know in html the values for img src use unix style path separators
with root ( "/" being your parent web directory.
However in windows land the path to my images would be something like
\\theOtherServerMapping\wwwRoot\inetpub\images
How would I write the path to such an image directory in my html tags?
Would I need to urls instead of file paths?
This is an honest question, please don't slam me. I need the help
Thanks in advance for any information
If the entire Web site is for an intranet (internal to your
company) and not the Internet, URLs to files (pages, images, etc)
can be of the form
file://///server-name/directory/subdirectory/file-name
where
"file" is literally that, indicating a file server and not a Web
server.
Use forward slashes (virgules), not back-slashes. This allows you
to set this up where the file server, internal Web server, or
user's platform are not necessarily PCs running Windows. The
convention is to use only two virgules. However, Windows requires
five virgules in lieu of two back-slashes to indicate an external
file-server (external to the host of the Web server, within your
intranet). You may have to experiment with both two or five; try
five first.
"server-name" is the name of the file-server. If there are any
embedded blanks in the name, encode them as %20.
"directory" is the name of the folder (Windows) or directory (Unix)
where the file is located. Similarly, "subdirectory" is the name
of the folder below "directory". "Subdirectory" is omitted if the
file is directly in "directory"; on the other hand, there may be
several levels of "subdirectory". Avoid using names that contain
blanks; if that's not possible, encode them as %20 as with
"server-name".
"file-name" is the name of the file. Since you are using a
file-server that merely sends the file and not a Web server that
might provide the file-type in a header, it is necessary that
"file-name" includes an extension (e.g., .jpg, .gif).
Depending on how your intranet and file-servers are configured,
this may work only within a LAN (local-area network) or may work
within a WAN (wide-area network).
NOTE WELL: None of this works for Web pages that will be seen by
anyone who does not have direct access to the file-server. Indeed,
it is necessary that the user already be connected to the
file-server before attempting to look at the Web page. Your Web
server will provide neither access nor the connection. However, it
is possible to create a Web page that contains scripts to establish
the connection to the file-server for users who have existing
access priveleges; such a Web page must be viewed by a user before
attempting to view a page that requires the connection.
On my own PC
file:///C:/WINDOWS/desktop/flame.gif
gives me the flame graphic image from my own desktop. On my wife's
PC, however, she would use
file://///DAVID%20PC/WINDOWS/desktop/flame.gif
because, in our household LAN, my PC is named DAVID PC.
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.