PDA

View Full Version : open a file from a network drive


joeframbach
07-06-2005, 06:58 PM
hello all!

i need to be able to access files on my R drive, or \\server\folder\

the problem, it seems, is that apache wont let it happen.

i found a solution on expertsexchange, but its one of those where you need a $10 subscription to see it, and i'm cheap. i can't find this problem anywhere else.


unless (open FIN,"<R:\\server.log") {
print "i just cant do it!";
}

joeframbach
07-07-2005, 03:40 PM
open FIN,"<R:\\server.log" or die "i just cant do it! $!";

yields the following output:
"SOFTWARE ERROR
i just cant do it! No such file or directory at C:\......"

so then i used the actual name of the server, but for example:

open FIN,"<\\\\server\\logfolder\\server.log" or die "i just cant do it! $!";

which yielded the output:
"SOFTWARE ERROR
i just cant do it! Permission denied at C:\....."

what? permission denied? of course i have permission. oh. I have permission. apache doesn't. apache is running as a system service. bingo.

so, how do i change that?

joeframbach
07-07-2005, 05:09 PM
okay, so after poking around for a while, i got apache2.exe to run under my account, rather than system, but i am still having the same problem.

i created a test file on another machine in my network, and accessed it without a problem.

i'm lost. :confused: