Run an rdp program from a PHP application [closed]

1

Would you run a rdp program through a php site?

I tried

echo exec("start \192.168.1.233\Teste\Apps\BRAVOS.rdp") or die("ERROU");

and

system("\192.168.1.233\Teste\Apps\BRAVOS.rdp");

More just load and return to the page that I called the command the application does not open.

Is it possible to open this way?

    
asked by anonymous 29.08.2016 / 18:38

1 answer

2

You can create a .bat file by pointing to your program. In PHP, use this code:

$handle = popen('meu_bat.bat', 'r');
$read = fread($handle, 2096);
pclose($handle);

And within meu_bat.bat put the call to your program:

START MEU_PROGRAMA.EXE

POPEN Source

    
29.08.2016 / 18:43