Reputation: 2202
I am looking to run a process (for example an instance of python) on a web server. How do I initiate this via http request? For example, a user arrives on my page, I want to initiate a python instance on the web server that can be accessed via ajax requests. For now, I just want to focus on the initiation of the process though.
To be clear, and I failed to make this clear - sorry, I wanted to initiate (using php) a python process on the server and then send execution commands to it. Also, I found an answer: http://php.net/manual/en/function.proc-open.php
Upvotes: 1
Views: 460
Reputation: 21378
Use mod_python
on Apache. Stick a Python file in your DocumentRoot
. Blammo.. You have Python executing on your web server.
Upvotes: 3