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

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:

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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://617643]
Approved by naikonta
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2014-09-02 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (21 votes), past polls