原始碼c++
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
cout << "111\n";
cout << "222\n";
return 0;
}
原始碼php
<?
$retValue = exec("test",$arr,$ret);
echo $retValue.'\n';
echo $arr.'\n';
echo $ret.'\n'
?>
執行結果 一直卡住
請問怎麼解決呢??
假使我要傳值給exe在接它的return
類似一個function
exec可行嘛
煩請高人指點 弄了一晚了 ~_~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.27.129.69
→
12/13 12:03, , 1F
12/13 12:03, 1F
→
12/13 12:04, , 2F
12/13 12:04, 2F
推
12/13 12:36, , 3F
12/13 12:36, 3F
→
12/13 12:37, , 4F
12/13 12:37, 4F
→
12/13 18:43, , 5F
12/13 18:43, 5F