I have a PHP 5 script on a Windows 2003 server running IIS 6.0 The script puts a file on a mapped network drive. When I log into the server as an administrator and run the script from the command line the file gets written to the mapped drive. When I run the script from a browser it errors out - "no such file or directory". I assume this is a permissions issue with the Internet Guest user trying to write the file as opposed to an administrator writing the file. I've read some about this and I know one option is to write the file locally and then use a scheduled task to copy the file to the mapped drive. However, I would rather not go through the extra step.
I'm pretty new to IIS (I'm used to Apache running on Linux). In reading it seems there are ways to open up the permissions but that it might be a security risk. Is there a way to give write permissions to a mapped drive without opening myself to a security issue?