Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Unavailable network drives in CGI scripts

by Sprad (Hermit)
on Dec 13, 2006 at 11:43 UTC ( [id://589611]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Unavailable network drives in CGI scripts
in thread Unavailable network drives in CGI scripts

This is running under IIS 5.1. I added two more lines:
print `whoami`; print $ENV{USERNAME};
'whoami' returned my username (not a web account), but the USERNAME environment variable was empty.

---
A fair fight is a sign of poor planning.

Replies are listed 'Best First'.
Re^3: Unavailable network drives in CGI scripts
by JediWizard (Deacon) on Dec 13, 2006 at 12:01 UTC

    Try adding something like this:

    if(-d 'w:\'){ print "w:\\ is a directory\n"; if(-R 'w:\'){ print "w:\\ is readable\n"; }else{ print "w:\\ is not readbable\n"; } }else{ print "w:\\ is not a directory\n"; }

    They say that time changes things, but you actually have to change them yourself.

    —Andy Warhol

      I tried it with 'w:', 'w:\' and 'w:/'. In all three cases, it says it's not a directory.

      ---
      A fair fight is a sign of poor planning.

        Are you quite sure that windows agrees that the drive designator is a directory?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589611]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.