PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
nelson777 wrote:Actually I'm under Windows
proc_open and proc_status, don't work in my case. Thnx anyway.
Ah sorry, my windows knowledge when it comes to things like this is pretty poor. If you can run a command on the command line that does a `ps' equivalent (lists all processes) then the backtick syntax I used above, or shell_exec() should work if you're happy enough scanning the returned string.
Following timvw' link, I get to know that there is a small command line tool in the support folder of W2000' installation CD called "tlist" that does the same as ps under unix. So adapting d11wtq code my function ended like this: