【发布时间】:2013-11-29 08:05:59
【问题描述】:
如何将输出实时显示到数组中?...
下面的代码只显示批处理文件完成时的数组..
$output = array();
echo exec("E:\SmartbookGen\engine.bat", $output);
print_r($output);
批处理文件完成时输出数组..如何将输出实时显示到数组中
C:\xampp\htdocs\MIS>E:
E:\>cd SmartbookGen
E:\SmartbookGen>java -Xms256M -Xmx512M -cp lib/*; SmartbookGen
year_active-2013
month_active-6
numberOfPages : 7
numberOfPages : 19
numberOfPages : 24
numberOfPages : 23
numberOfPages : 215
numberOfPages : 172
numberOfPages : 14
Exporting...
谁能帮帮我..谢谢
【问题讨论】:
-
您最终找到解决方案了吗?
标签: php batch-file exec