I have created a function for users to upload a file into a unix shared server.My system is stored in another windows server. I am using WAMP to run the php server.
My problem is, before this, i have encounter access permission issue when i'm trying to upload a file into the shared server. It keeps give an error about permission denied. After that, i have assigned the php server into a group that have read and write access to the unix shared server. Then, i have no problem to upload and download the file from the unix shared server.
After some times, it does not work anymore. When i tried to upload a file or create directory to that unix shared server, it gives an error like this:
But if i use the same code to upload a file from the php server to my pc (i shared a folder and gives read and write access to the php server), it works perfectly.Warning: move_uploaded_file(\\xxx/file.doc) [function.move-uploaded-file]: failed to open stream: Invalid argument in xxxx on line xx
I already checked the access permission for the php server and it still in a group that has read and write access to the unix shared server.
Does anybody know how to solve this problem? Any idea about this would help. Thanks a lot.