vpgsan Posted September 6, 2007 Share Posted September 6, 2007 Hi [/img] I have a requirement, senario is this PHP is installed with windows server and also another application installed. Online the user will request for a key for that we need to call this application and pass some parameters then get the value from this application show the value to user. Web user requesting for key --> request sent to server--> server requesting key with another application by passing some values ---> another application returns some values--> the values sent back to the web users. can you please help in step three how can we call another application by passing some values? and get the values from other application. Regards San [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/68160-how-to-connect-with-windows-application/ Share on other sites More sharing options...
trq Posted September 6, 2007 Share Posted September 6, 2007 The application will need to have a command line interface, you then use exec or one of its related functions to call the application via the command line. Quote Link to comment https://forums.phpfreaks.com/topic/68160-how-to-connect-with-windows-application/#findComment-342689 Share on other sites More sharing options...
tomfmason Posted September 6, 2007 Share Posted September 6, 2007 Make sure that you properly escape *all* user input when using any system function. Alternatively, if the application supports COM, you could use it with less of a security concern. You can find out if the application as a COM layer on your system by going to Administrative Tools->Component Services->COM+ Applications. Using COM is pretty simple and straight forward. However, reflection doesn't work with COM and will cause apache to crash if you try it. I have successfully used it with excel,powerpoint and skype. Quote Link to comment https://forums.phpfreaks.com/topic/68160-how-to-connect-with-windows-application/#findComment-342743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.