Copy Remote Files Error
Posted: Wed Feb 02, 2011 8:52 pm
We are currently running Apache on Windows and we have a process that copies a PDF file from a remote virtual directory (\\xxx.xxx.xxx.xxx) to our web server and everything works fine.
We would like to switch to running our site in IIS rather than Apache on windows. We cloned our current web server to an other VM share and now this copy process does not work. Our configuration is IIS6, FastCGI, CakePHP and PHP 5.3. The error we get is function copy: Failed to open stream: Invalid argument. The block of code is:
copy($remotepath, $localpath);
I am thinking it may be related to the permissions of the IUSR account on IIS but cannot figure out what is wrong. Does anyone have experience with copying remote files this way using IIS?
Hopefully I put in all the necessary info, but if you need me to expand on anything or need more information let me know.
Thanks,
Chris
We would like to switch to running our site in IIS rather than Apache on windows. We cloned our current web server to an other VM share and now this copy process does not work. Our configuration is IIS6, FastCGI, CakePHP and PHP 5.3. The error we get is function copy: Failed to open stream: Invalid argument. The block of code is:
copy($remotepath, $localpath);
I am thinking it may be related to the permissions of the IUSR account on IIS but cannot figure out what is wrong. Does anyone have experience with copying remote files this way using IIS?
Hopefully I put in all the necessary info, but if you need me to expand on anything or need more information let me know.
Thanks,
Chris