Jump to content

Archived

This topic is now archived and is closed to further replies.

scriptersx

checking to see if a program is running

Recommended Posts

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

Share this post


Link to post
Share on other sites
As far as I know, PHP can't mess with files or programs...
You should try a desktop app...

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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;

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.