Well here is my problem. I have a very basic script that writes data sent to it form an applet to a file. The file that it is suppose to write to is in a password protected directory and I'm pretty sure that the cgi script cannot access the file to write to it. If I remove the password protection from the directory, the script works fine. However, once the password is back on, it will not write. It's on a win2000 server, so I'm not sure hoe to give the script access to write to the file.
I've pretty new to perl, most of my knowledge lies in Java thus far, so any help you may be able to provide to help with my problem would be great.
Code as follows:
#!/usr/bin/perl open(OUT, "> /location/file.txt") or dienice("Can't op
+en file.txt for writing: $!");
print "content-type: text/plain\n\n";
while (<>) {
print OUT $_;
print $_;
}
close (OUT);
exit 0;