Browsing file using iis as web server.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Browsing file using iis as web server.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Browsing file using iis as web server.  
Papanii Okai


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-04 12:47 PM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:53 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register