Remotely Rebooting a Program

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Remotely Rebooting a Program

Post by Zorth »

Hey all,

I've been trying recently to allow the Staff of a game I am working on to reboot the program remotely while the program is down. First of all, the game is on Windows XP. I installed pskill which closes a process, and made a web link which leads to that and it works fine. However, sometimes when the program crashes it brings up a window that asks to either cancell or log on to the debugger, and it will interfere with closing the process. Any suggestions on that?

I also had alot of trouble with getting system() or exec() to start up the process again. Every time I tried to use either, PHP would hang. I hear that you can pipe the output or whatnot to a file which will allow PHP to not hang? Though I also here that exec() does not even produce output. I'm completely lost here and would appreciate any help with this :)

Lastly I remember someone posting saying that Windows XP provides a way for people to remotely shutdown and restart a process. If anyone knows anything more about that, I'd be extremely gratefull.

Thank you,

Zorth.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Can't you just open up RDP and allow them to RDP into the XP machine and control it that way?
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post by Zorth »

I wish I knew how. I suppose that is the part of XP I heard someone mention. If it's possible, that would probably work too.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yes, it is part of XP. Right click My Computer, go to Properties, and then Remote tab and check the box that says allow users of this computer to login remotely. Then the client is in the start menu under Accessories->Communications ...
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post by Zorth »

And is there a specific port which must be open to allow connections?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yea, RDP uses 3389 . Might have to disable ICF (Internet Connection Firewall) on the XP machine that you are trying to RDP to.
Post Reply