http://www.perlmonks.org?node_id=617643

naveed010 has asked for the wisdom of the Perl Monks concerning the following question:

Howdy.

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="http://some.host/pictures/pics1/DSC0001.JSP"> 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