scriptersx Posted April 17, 2006 Share Posted April 17, 2006 im making a script for my lan and i want to be able to use php to start/stop different programs vnc,vlc etc. I know how to get them to start, and i can make a bat and run that to stop them but i want to check if they are running so i dont make double instances etc, and ideas how i could do this and use the information in my page Quote Link to comment Share on other sites More sharing options...
poirot Posted April 17, 2006 Share Posted April 17, 2006 As far as I know, PHP can't mess with files or programs...You should try a desktop app... Quote Link to comment Share on other sites More sharing options...
DJMurtz Posted April 17, 2006 Share Posted April 17, 2006 Yes you can with php.Check: [a href=\"http://www.php.net/manual/en/function.proc-get-status.php\" target=\"_blank\"]http://www.php.net/manual/en/function.proc-get-status.php[/a] Quote Link to comment Share on other sites More sharing options...
poirot Posted April 18, 2006 Share Posted April 18, 2006 I am afraid you can't, these functions are for programs being executed by the server if I am not wrong... So, you can't simply use it in Windows, for example; Quote Link to comment Share on other sites More sharing options...
DJMurtz Posted April 18, 2006 Share Posted April 18, 2006 [!--quoteo(post=365781:date=Apr 18 2006, 02:31 AM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Apr 18 2006, 02:31 AM) [snapback]365781[/snapback][/div][div class=\'quotemain\'][!--quotec--]I am afraid you can't, these functions are for programs being executed by the server if I am not wrong... So, you can't simply use it in Windows, for example;[/quote]I was asuming the topic starter was talking about a server he was running on his PC. Obviously PHP is serverside and can't run/detect programs clientside. If the server is running localy then you can do this, even in windows. Quote Link to comment 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.