假設我在 php 腳本中
abc.php
shell_exec("git status");
做這樣的動作我在終端機打 abc.php
但這樣不會印出任何東西如果是正常打這段git status指令會出現:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: a.php
modified: x.php
Untracked files:
(use "git add <file>..." to include in what will be committed)
.DS_Store
這樣的信息!如何就算是用php腳本打這指令的時候一樣能夠印出這個原始信息而不是空的不顯示?
添加回答
举报
0/150
提交
取消