I have not tried with php, but with python this work:
p.runShellCommand("python /usr/bin/test.py 2>&1");
or this
Process p;
p.begin("python");
p.addParameter("/usr/bin/test.py");
p.run();
I have not tried with php, but with python this work:
p.runShellCommand("python /usr/bin/test.py 2>&1");
or this
Process p;
p.begin("python");
p.addParameter("/usr/bin/test.py");
p.run();