How to make a continuous connection between php and python
<p>I want to make a real time application. So here is the scenario-
I have data coming to my computer through one of my COM port, which then is fetched by python and shown. For this I have used just a simple python <code>serial</code> module which reads the data via serial port and shows it.</p>

<p>Now this data is local to me. For high-end purpose, I need this data to be posted to one of my online website, which has <strong>apache</strong> webserver running, which will show the data worldwide.</p>

<p>So for real-time, I need to continuously monitor the serial port, take the data it, and post it continuously to the web-server (PHP end). (Reading the serial data and posting it to server run in parallel).</p>

<p>Now the problem is-</p>

<ol>
<li><p>How do I monitor the data coming from COM port <em>in parallel</em> to posting it to webserver?</p></li>
<li><p>If I am sending data continuously, How do web-server get to know if the data is continuous? For this approach, I thought to save the data to database of webserver and make PHP script to continuously monitor the database. Tell me a better approach if you have</p></li>
</ol>
