'Is It Possible To Write PHP Data To Python Script Using Python's stdin?
I have some data generated by a php script that I need to send to a Python script to do some additional processing. Writing the data to a file and then reading it from the Python script is unfortunately not an option for this case. Is there a way for me to maybe get a handle for the standard in of the Python script so I can just write to that? Reading from stdin in Python is simple enough.
I don't know if this is even possible and I'm open to any other suggestions! Also happy to provide any pertinent details I may have missed in this question.
Using PHP 7.4.3 and Python 3.6 on Apache web server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
