Answer the question
In order to leave comments, you need to log in
How to pass arguments from php script to python and vice versa?
There is a php and python script. The php script is the main one and must pass an argument, for example, from some variable to the python script and from the python, respectively, receive the finished value and display it in the php script. How can this be done in an easier way?
Answer the question
In order to leave comments, you need to log in
Make a simple flask server. Through PHP, you make a GET to your endpoint, and process it there.
https://habr.com/ru/post/246699/
Raise each of them as a separate web application that calls each other. In such a scheme, it doesn’t matter at all what scripts are written on.
Through the REST API. From php you make a request, you get a response from python.
But in general, I would think - is it not easier to do everything together in php or in python than to fence such gardens.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question