In the php code exec('python file.py 1 2',$result);
the $result give me the code inside the file.py but I need the output from print. Suppose file.py do an addition job.
var_dump($result) -> import sys print int(sys.argv[1]) + int(sys.argv[2])
instead of var_dump($result) -> 3
Also got this problem when using exec('php file.php 1 2',$result).
safe_mode is already turn off