Good, I would like to know if there is a routine in PHP or Java Script that allows me to detect if an external application is open [closed]

-2

I would like to know if there is a routine in PHP or Java Script that allows me to detect if an external application is open.

Example: Show me on my website built with PHP or Java Script if an external app like Work or Excel has been started?

    
asked by Kevin Schoeps 13.10.2018 в 17:16
source

1 answer

0

You can do that if you are running PHP on your computer. The exec command in php allows you to execute operating system commands and obtain the output in a variable.

In windows you can execute the tasklist command and then parse the result lines obtained in the second parameter of the function.

$salida = array();
exec('tasklist', $salida);
print_r($salida);

PHP exec

    
answered by 13.10.2018 / 18:20
source