From:                   [EMAIL PROTECTED]
> I have a question regarding a cgi I'm about to write. The cgi shall
> take some user entries from a form and write them into a text file on
> a mapped network drive. Is there any possible way to do that? I would
> think that if I do a open OUTFILE, ">M:\somepath\textfile" the server
> would use it's M: drive instead of the clients one...
> 
> Lars

There are two problems with this.

1) The CGIs usualy run under a local account (IUSR_machinename if you 
use IIS). Local accounts do not have access to remote drives.

2) Drive mapping is per-user-session. The fact that you map a drive 
while logged in as yourself doesn't mean the services that run under 
a different account will see it.

You may either use 
        subst
instead of
        net use
or use the \\servername\share\... syntax.

In either case writing the data to a remote location is going to 
create more problems than it's worth. You'd better write it somewhere 
localy and then copy them somewhere with a background process 
(service).

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to