Sorry if it seems the silly question. I could not launch windows GUI application by PHP any way. I have tried any workaround that I have found out from the similar questions but they did not work at all.
My command:
$cmd = 'E:\soft\Notepad++\notepad++.exe E:\text.php';
I can run that command by the Window Command Line tool and it worked fine, the notepad++ launched and opened the GUI with the expected content. I would like to do that in php
I have opened the windows services and set the option "Allow service to interact with desktop" (checked) for "wampapache" service and restart it as well.
I have tried with each of following commands:
pclose(popen("start /B $cmd", "r"));
OR
system("start $cmd");
OR
exec("C:\\windows\\system32\\cmd.exe /c START " . $cmd);
OR
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($cmd, 0,false);
All of them gave me the same of result: it just ran the application IN THE BACKGROUND, I could see that app process that is running by looking at the Task Manager of Windows, but the GUI DID NOT DISPLAY.
My PHP version is 5.4.3
Any help is appreciated.