I am trying to write a PHP script to copy files from your local machine to the server:
$ destination_directory = 'I: \ path \ to \ file \'. $ Theme_number;
if (! @opendir ($ desination_directory)) {echo 'Sorry, no destination directory was found.'; die(); }
I am checking access to the destination folder with this process, and I keep returning an error. Does anyone know what I'm doing wrong? I pretty much have everything else. I just don't know how to access this other server.
Addendum: I accepted the answer below because it is technically correct, and I was able to get the Apache server, which should be accepted by the IIS server, however, for what I tried to execute (providing anyone who used the script with unlimited ability to transfer files to the server) It was not feasible. I would have to configure certain features on each of my computers. It seems that the best solution would be to install the script on the server where you would like to copy your files, and then transfer them from the local drive to this place in more traditional ways. This would mean a file server with CGI-exec capabilities, although our server did not.
source
share