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 Link to comment https://forums.phpfreaks.com/topic/7578-checking-to-see-if-a-program-is-running/ 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... Link to comment https://forums.phpfreaks.com/topic/7578-checking-to-see-if-a-program-is-running/#findComment-27909 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] Link to comment https://forums.phpfreaks.com/topic/7578-checking-to-see-if-a-program-is-running/#findComment-27927 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; Link to comment https://forums.phpfreaks.com/topic/7578-checking-to-see-if-a-program-is-running/#findComment-27942 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. Link to comment https://forums.phpfreaks.com/topic/7578-checking-to-see-if-a-program-is-running/#findComment-27947 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.