Issue
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.
Solution
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.
Answered By - Nikhil k gireesh
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.