I am trying to write a PHP script to move a bunch of files from my webserver, to another machine on the same network. I’m running Apache on windows. I’ve tried mapping the network drive and using
[CODE]rename($webserverPath, “Z:/”);
Which threw permission errors.
I then created a windows share and tried:
[CODE]rename($webserverPath, “\\hostip\sharename”);
…same thing. Permission denied. I can’t seem to figure out how to add Apache to the user list for the share. What user does windows give to apache? I’ve tried adding every possible user in the share list, and giving it full control (network, anonymous, administrator etc.) … still nothing.
Any ideas?