Hi All,
I'm using Windows on my servers.
I have to periodicly download some file to SERVER1 from FTP server. And then copy those files to shared folder on SERVER2 after downloading them.
For this job, I write a PHP script and I scheduled it with CURL within .BAT file like:
c:\curl\curl.exe http://localhost/getmyfiles.php
My script downloads files from FTP correctly. But, when I try to copy downloaded files to SERVER2's shared folder it gives error.
I tryed PHP's copy function and PHP's exec function, but I coudn't do it.
PHP's copy function gives this error: function.copy : failed to open stream: Permission denied
If I change shared folder's permissions to EVERYONE on SERVER2 it works correctl.
I'm running my scheduled job with ABC user which is can write permission on shared folder.
If I login to SERVER1 with ABC user, I can copy files to shared folder with windows explorer successfuly.
Help please...