简体   繁体   中英

Execute local application via PHP from server

My company has an internal Linux server running PHP with an application that displays client specific information, such as SSH connection info, etc. Is there a way to have the server invoke a command on a local machine via PHP? For example, the server displays a link with SSH connection information, such as c:\\putty.exe -ssh someone@192.168.1.100 -pw MyPassword`. The user - on a windows machine - clicks the link and Putty fires up with all the connection information.

I believe Flash's fscommand has the capabilities I'm looking for, although I would much prefer to use PHP, if at all possible.

PHP is a server side technology and as such does not have any control over the client. You'll have to use a client side tech like flash or if it's IE only, ActiveX

Only way to things like this is mount your resource on server machine. To do that you have to have a server that will be visible for server and able to host your files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM