Shell_exec prints the results?

suppose I am in the php copy

abc.php

shell_exec("git status");

do this
I call abc.php on the remote phone

but this will not print any code
if you type this git status command normally, it will show:

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

such information!
how can I print this original message instead of an empty message when typing this command in php version
?


exec

Menu