PHP Execute cmd command
How to execute the following system commands in PHP:
D:\matlab\r2012a\bin>matlab-r Matrixcompute
I tried using the following code:
Header ("content-type:text/html; Charset=utf-8 "); Set file Encoding format
Echo ("Open matlab ... ");
EXEC ("D:\matlab\r2012a\bin>matlab- R matrixcompute");
?>
The result is only output: open matlab ...
The system does not open the MATLAB program.
Excuse me, what is the reason? (Safe mode is off)
------to solve the idea----------------------
You've written the wrong order!
D:\MATLAB\R2012a\bin
\matlab-r Matrixcompute
Please note: external commands executed by PHP are run in the background, do not appear in the user interface, and do not respond to user interaction
------to solve the idea----------------------
Matlib is not a tool to output c/cpp code, and then use PHP to expand the package layer.
And Matlib should be able to open the TCP service bar, so PHP and matlib between the socket communication on the line.