Browsing file using iis as web server.
From: Papanii Okai (papanii58_at_hotmail.com)
Date: 10/26/04
- Next message: KramerCat: "Re: IUSR Account from another machine Logging into my server"
- Previous message: Jason Brown [MSFT]: "Re: fld file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 26 Oct 2004 03:13:41 -0700
Hi guys,
I am a newbie when it comes to IIS. I am currently running
Windows XP Pro which runs IIS 5.1. I am having a little trouble when it
comes to CGI scripting. I have a program that dynamically generates html
WebPages whenever run. Within these pages I have a <a href="file on
drive">link</a> link to files on my local hard drive (specifically
pictures). But for some reason after the page is generated, when I press the
link to the file, it doesn't open. here is a example of the html code
used...
<a href ="file:///C:\pics\pics1\DSC03565.JPG"target="_blank">
<img src="file:///C:\pics\pics1\DSC03565_thumb.jpg">DSC03565.JPG
</a>
The funny thing is that if I take the file path
'file:///C:\pics\pics1\DSC03565.JPG' and put it in internet explorer it
opens up the image for me. Another strange thing is if I save the source of
the generated html page as another file it works for me. At first I thought
it was the program that was generating the page but if I put a url say
'www.Microsoft.com' it works for me. I really don't know how to proceed from
here. I have come to the conclusion that it is some setting in IIS because
if I run this on Apache, it works fine. Is there any setting to enable me
access files on a local drive this way? Does anyone have any ideas or
thought on this matter? Help will be greatly appreciated.
--Papanii
- Next message: KramerCat: "Re: IUSR Account from another machine Logging into my server"
- Previous message: Jason Brown [MSFT]: "Re: fld file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|