PHP execution on networked Windows server : <p>I’m working on an internal application for a large entity, and I need to be able to do the following:</p>

<p>From a web interface (hosted with Apache on Linux), constructed with PHP, connect to a Windows box that won’t have PHP installed, and move some files - live, triggered by Ajax.</p>

<p>I have some flexibility, but I need it to be secure.  A linked network drive is a possibility.  Another possibility if I can’t directly move the files on the Windows machine, is to have some sort of watcher on a Windows machine that will respond to some trigger.</p>

<p>SSH is not ideal, because I don’t want to install a server on the Windows machine.  The files are not connected to a web server, so the installed IIS on the Windows server is not necessarily helpful.</p>

<p>I think ideally, I’d do it over a network share - a linked directory on the remote machine, and either move the folders with PHP or if that won’t work, trigger a batch file or a Powershell script.  However, I’m not sure what to watch out for in terms of permissions / security holes.</p>

<p>Is there a ready made solution for this kind of thing?  Failing that; are there any general guidelines that I should consider to do this effectively - libraries, extensions, etc?</p>

<p>Thanks</p>
