I am trying to use php exec() function to execute a python file. When i try something like this:
echo exec("python app.py");
It works but if i omit the python string and keep it like this:
echo exec("app.py"),
it gives this error: Syntax error: word unexpected (expecting ")")" which also shows up even if i change from python to another language other than php like JavaScript
app.py only contains one code line: print("Hello World").
What am i doing wrong please as this is my first time using the exec() function.