in reply to Perl and WINNT write problem

Try adding the following line to your script

print $ENV{USERNAME};

I'm betting that when your script is being run by the webserver, it is running as a different userid to when you run it at the command line and that the permissions on the file you are trying to write to are such that the userid used by the webserver does not have permission to write to it.


Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.