Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

CGI access to virtual directories w/IIS6

by naveed010 (Acolyte)
on May 26, 2007 at 01:25 UTC ( #617643=perlquestion: print w/replies, xml ) Need Help??
naveed010 has asked for the wisdom of the Perl Monks concerning the following question:


I'm using IIS 6 as on my win 2003 server.

I've created a virtual directory called www_pics. However my scripts (locted in the same directory) cannot see the dir. I've tried referencing it every way I can, with no avail (ie. .\www_pics \www_pics ..\wwwpics /www_pics www_pics etc etc.

I've granted the www user account full control on inetpub and the the virtual dir. I've created a share. the only way the html generated "half works" is when I pass in the full directory path, ie. e:\pictures\pics1, however, in the html that's generated... < img src=e:\pictures\pics1\DSC0001.JPG > I just get the "error" thumbnail, no picture...

Any thoughts?

  • Comment on CGI access to virtual directories w/IIS6

Replies are listed 'Best First'.
Re: CGI access to virtual directories w/IIS6
by Joost (Canon) on May 26, 2007 at 02:49 UTC
    < img src=e:\pictures\pics1\DSC0001.JPG > contains a local file path, not a URL, also, you need quotes. Something like <img src=""> or <img src="/pictures/pics1/DSC0001.JSP"> (if the image is on the same host as the referencing page) will probably work.

    none of this has anything to do with perl.

      >> none of this has anything to do with perl. Well I agree with you, however, it's perl scripts that are accessing the files... I was wondering if it was something with my script, IIS, or the virtual directory/. thanks for the response

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://617643]
Approved by naikonta
and the rats come out to play...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-06-19 03:32 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.