mattp1992 Posted October 30, 2011 Share Posted October 30, 2011 Hi all, I have been working on an intranet website for some time now, one of the features I have been working on is a very simple Game Server Control Panel, the panel simply Starts, Stops and restarts servers via the System command, executing .bat files on the server. All this is working perfectly, however what I am wanting to know is if it is possible to make a function so a user knows if a particular server is running? My thoughts are a Green Tick would be displayed next to the name of the server, telling the user the server is running, alternatively, a red cross would be displayed if the server is not running... Not really sure how difficult this would be, I assume some sort of query could be created requesting if a particular windows process is running, then the output would be an IF statement.... Any Advice? I have attached a picture below of the site just to give people an idea of what it looks like Thanks in advance! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/250084-displaying-running-system-processes-within-php/ Share on other sites More sharing options...
darkspire Posted October 30, 2011 Share Posted October 30, 2011 not sure if you can do this in PHP alone. I would write a small vbscript or c# program to output the process list to the command line, then you can just read it into your PHP using stdin Quote Link to comment https://forums.phpfreaks.com/topic/250084-displaying-running-system-processes-within-php/#findComment-1283382 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.