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 `serial` module which reads the data via serial port and shows it.

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 **apache** webserver running, which will show the data worldwide.

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).

Now the problem is-

1. How do I monitor the data coming from COM port *in parallel* to posting it to webserver?
2. 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