Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- copy()-problem over a network
January 2, 2006, 7:49 am
rate this thread
I have a problem with accessing files on other computers in my network.
The network is a Windows 2000 workgroup network and I have administrator
This works (from the directory copytest I copy something to copytest2):
The next bit does not do the job (from the same directory to a networked
It gives me the following message:
Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
denied in D:\localweb\copytest\copytest.php on line 2
(\computername\sharename gives the same message).
Any thoughts on this?
Re: copy()-problem over a network
The web server runs with different user rights than you as the admin. You
need to grant the same rights to the web server user, so it has permission
to write to the network drive. Maybe create a new account on the network
drive for the server. I don't know about apache, but IIS servers username is
usually something like IUSR_<COMPUTERNAME>, like IUSR_WEB or IUSR_SERVER or
whatever... That user role needs to have access to the remote filesystem
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirvi
email@example.com | Gedoon-S @ IRCnet | rot13(firstname.lastname@example.org)