I have some scripts written in Python which upload files reads database and modify uploaded files. I want to make a web portal for doing the same work.
It is possible to call this Python script from the PHP code?
I found and here and also here but how to pass parameter in it? How will I pass uploaded file to it? or is it okay to leave that code into python script?
Python script generate interactive bulk result. How to revert back with that on PHP page?
I have tried to find answers and I've found many but I don't know the best way to do it.
Can someone please give me the best scenario to design this system?
EDIT : Problem Scenario
- I to ask user to upload a file.
- I'll query database on the basis of the info in that file.
- File can have hundreds of units for which I have to query database and prompt user to choose related units.
- Complete process is interactive up-to the numbers of units in the file.
- On the basis of user selection I've modify the uploaded file and give it back to the user.