I have a python program that i want to execute from php I already tried "exec,escapeshellcmd,shell_exec,passthru,popen" but no one is giving result.
i already execute "hello word" program successfully but the program that i needed is not executing and not displaying any error.
echo $python = exec("python python/interactive.py");//this file not working
echo $python = passthru("python python/python.py ");// this is working with hello world.
$output = shell_exec($command);
echo $output;
execand friends are the right way to tackle this. What is the error you get?exec?python/interactive.pydoing? It sounds like it needs a terminal, which of course is not present if you run that python program within a webserver