I have a small script that I need a bit of help with. What it is suppose to do it check to see if a program is running and if the program is running it echo's back Online, but if the program is not running it echo's back Offline, but the problem is that it always and I mean always echo's back thats its online, even when the program isn't running, so can someone please fix this code for me? I would say it can be done in batch if needed but the problem is that I have to use almost the same exact thing in another file that requires it to be in php.