nginx - Make PHP call an application in another server -


i have webpage (html, css, javascript) hosted in nginx & ubuntu & digital ocean server. webpage has part users submit file , call application php. wondering if possible host application alone in windows server 2012 r2 & microsoft azure, have already.

here example. the webpage (though real webpage has more contents) hosted in ubuntu server. upload file button linked uploadfile.php:

<?php copy($_files["file"]["tmp_name"], "uploads/" . $_files["file"]["name"]); $n1 = "uploads/" . $_files["file"]["name"]; echo "uploaded: " . $n1 . "<br>"; exec("mono c1.exe $n1"); ... ?> 

the application c1.exe developed in c# under windows. because new feature uses ode32.dll, cannot run mono anymore. have host c1.exe in windows server.

and don't want move whole website windows server. moreover, if possible, want web address in browser address bar consistent when calling php (i.e., starting www.matrixandcompany.com/...).

does know if possible realise mechanism?

probably can use curl (http://php.net/manual/en/book.curl.php). can create php file in server c1.exe is, , call old server.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -