I was just wondering if there was anyway I could execute a local app off the remote server. For example, if I were to goto http://www.myscript.php
Is there anyway i could get that script to execute c:\myapp.exe? If anyone knows how to get this done, could you reply ASAP.
-Chad
Executing An App From the server, please help!
Moderator: General Moderators
-
thundershadow14
- Forum Newbie
- Posts: 3
- Joined: Tue Nov 15, 2005 7:46 pm
-
thundershadow14
- Forum Newbie
- Posts: 3
- Joined: Tue Nov 15, 2005 7:46 pm
Right..
Right, I know about this function...but isnt it limited to running programs on the server? remember I want the server to run an application from MY machine at home.
-Chad
-Chad
Re: Right..
Sorry, that wasn't clear from the original wording, since you said "execute a local app off the remote server".thundershadow14 wrote:Right, I know about this function...but isnt it limited to running programs on the server? remember I want the server to run an application from MY machine at home.
I do not believe it is possible for a website to execute a program on your machine when you visit the page. Just think of the danger of a website running "format.com" on your machine.
It almost sounds like you are looking for a GotoMyPc.com kind of program?
You would need to write a script that runs on YOUR pc, that listens on a port, the server would connect to the port and send instructions for your pc to run. the script running on your pc would need to authenticate incoming commands. Easy way to do this is install php on your machine and write a simple tcp/ip server using the socket functions.
-
thundershadow14
- Forum Newbie
- Posts: 3
- Joined: Tue Nov 15, 2005 7:46 pm
Hmmm
Hypotheically speaking though, If my internet server was a windows machine, wouldnt it be possible to say; start a service on my home machine from the server via sc.exe, using my IP as the "remote server field". This is assuming the the executable service is already installed on my home machine ofcourse.