Using PHP with Python
Posted: Mon Jul 16, 2007 7:55 pm
I have an idea for a game that I would like to build using a mixture of PHP and Python.
I would like the backend operation to be mostly Python.
For instance, I want to be able to access coordinates and such in real-time. For that I am building a Python script that runs continuously in background that plots these things and reports them.
I plan to use PHP for the web interface stuff, as I just think it is just better suited to this task.
The question is.. how do I get them to communicate?
I mean how do I put a call into PHP that can access my running Python coordinate server?
Any ideas?
I would like the backend operation to be mostly Python.
For instance, I want to be able to access coordinates and such in real-time. For that I am building a Python script that runs continuously in background that plots these things and reports them.
I plan to use PHP for the web interface stuff, as I just think it is just better suited to this task.
The question is.. how do I get them to communicate?
I mean how do I put a call into PHP that can access my running Python coordinate server?
Any ideas?