I have a web application developed in a local PC in Windows using
- PHP 5.4.25
- Apache 2.4.7
- XAMPP 1.8.2
Now I want some files to be copied from a file server built in IIS 7 which is in the same network.
IIS 7 listens at random port number starting from 65000, other than this I have no idea how it was set up.
I have tried the following methods
- ftp_login() with proper username & password which has every rights
- copy('\\servername\folder\test.txt','path\to\my\folder')
- file_exists('\\servername\folder\test.txt')
- fopen('\\servername\folder\test.txt')
- opendir('\\servername\folder\')
- scandir('\\servername\folder\')
But PHP error says, Permission denied or Access is denied.
Sometimes it says, "The server has actively refused connection"
My question is what changes should I make in IIS 7 or in my web application.
I will answer any further questions on this. Thanks in advance.