I am trying to run a python script inside php file, the problem is i can't pass the file as an argument
something like this
$a ="python /umana/frontend/upload/main.py 'filename' ";
$output =shell_exec($a);
The real problem is, the file is not opening in python script.
It's solved
$a ="python-path  C:/python program path '$file_uploaded_path_as_param' ";
$output =shell_exec($a);
we want to add the python path before python script.
Run python script inside php and pass file as a parameter