Php calls the external exe program. I now use php to call the external exe program & nbsp; or the. bat file does not respond, and I do not know what the problem is & lt ;? Php & nbsp; $ flv_cmd = "D :\\ wamp \ www \ infoLib \ rerere \ PNCC.exe"; exec ($ flv_cmd );? & Gt; php calls an external exe program
I am using php to call an external exe program or a. bat file. I don't know what the problem is.
$ Flv_cmd = "D :\\ wamp \ www \ infoLib \ rerere \ PNCC.exe ";
Exec ($ flv_cmd );
?>
For example, I have tried using system to solve the problem.
------ Solution --------------------
$ Dir = dirname (_ FILE __);
System ($ dir. "/test.exe ");
Test.exe and file are at the same level. for different levels, add the Directory
Just now I wrote a simple test.exe output in my notebook. the test has returned results. please try again.
------ Solution --------------------
First, you need to test an exe with returned information. I don't know what pncc is. you can test it with dir or something like that.
In addition, some external files that need to call the ownership of the system cannot be run. do you think it is feasible to get a command in php to change the registry?