Few suggestions:
- Did you want INCLUDE the output result php file in your main file?
- You may have a look at popen function in php. That function allows you to capture the stdout of the command directly. No need to
tee
it to another file & then include it. - If you have access to bash on the system, try running the command directly on bash, to verify that it indeed outputs something.
- Try installing php locally & debug with easier commands, to see if
|
can be used insystem
.