Here is a simple command I pass into the shell_exec() function, which simply lists all docs inside a directory:
echo shell_exec("ls");
I have run into a problem of doing the same thing with active/dynamic content in a linux environment.
In other words, I don't think shell_exec() works if the data is constantly being refreshed.
My example:
echo shell_exec("nload -m eth1");
"nload" is the gui version of monitoring bandwidth.
I'm only guessing this, but does anyone know if my hypothesis is true?