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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4238d-4498a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4238d-4498a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?