snazy2000 Posted February 7, 2009 Share Posted February 7, 2009 Hi all i want to make a script that i can turn a program on and off by pressing a butten and people login so that not just any 1 can turn then on and off and more than 1 server can be done on 1 account and they can press on or off but it detects if the prigram is on or of first bu(if any 1 is worryed about this dont be because i host my own websites on my server box) i want toi do this because i run game servers Can any 1 help? or give me a code that has already been made Thx steve Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/ Share on other sites More sharing options...
johntp Posted February 7, 2009 Share Posted February 7, 2009 What do you mean by "Program" ? Could you give a little more detail as to what your doing? Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756838 Share on other sites More sharing options...
snazy2000 Posted February 7, 2009 Author Share Posted February 7, 2009 i want to start or turn off .exe's in diff dirs Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756845 Share on other sites More sharing options...
Mark Baker Posted February 7, 2009 Share Posted February 7, 2009 i want to start or turn off .exe's in diff dirs Do the .exe's understand what you mean by turning them on or off? Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756853 Share on other sites More sharing options...
snazy2000 Posted February 7, 2009 Author Share Posted February 7, 2009 wa u mean??? Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756855 Share on other sites More sharing options...
Mark Baker Posted February 7, 2009 Share Posted February 7, 2009 wa u mean???What I mean is: what do you mean by turning a program on or turning a program off? Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756905 Share on other sites More sharing options...
snazy2000 Posted February 7, 2009 Author Share Posted February 7, 2009 i mean were the programs turns off so u can not see it in the server computer screen and start to see it again Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756975 Share on other sites More sharing options...
corbin Posted February 7, 2009 Share Posted February 7, 2009 Looks like you want http://php.net/exec, and you might want to look into tasklist.exe and taskkill.exe. Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-756980 Share on other sites More sharing options...
snazy2000 Posted February 7, 2009 Author Share Posted February 7, 2009 could you make me the peace if code?? cose thats very confusing Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-757030 Share on other sites More sharing options...
blueman378 Posted February 7, 2009 Share Posted February 7, 2009 if you want someone to code it for you ask in the freelance section. if you start coding it and get into trouble then ask here. although you learn more if you code it yourself. Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-757060 Share on other sites More sharing options...
corbin Posted February 8, 2009 Share Posted February 8, 2009 Hrmmmm, under Windows, I'm not quite sure how to make exec not hang on the program. Under linux, it would simply be exec('someprogram &');, but as far as I know, there is not a Windows version of &. You could pipe the output to nul, but that wouldn't accomplish anything since the program would continue to run. Perhaps you could code a small C (or something) program that would spawn another program and exit.... Hrmmm... Quote Link to comment https://forums.phpfreaks.com/topic/144218-program-on-and-off-on-the-web-host-computer/#findComment-757115 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.