please advise on the following, and if you were to do something different please let me know.
with a c# app i am auditing conversations between cellphones. here’s what happens:
- someone sends a text to my phone which is attached to my computer
- my c# catches the message and it forwards it to another phone number
- the person receiving the message will reply to it
- the reply goes back to my computer
- my application forwards the text back to the originator
i want to capture these conversations on my website in real-time
-
the simplest solution would be to update some html file and automatically upload it to my ftp server. although it’s the simplest solution, i dont think it will look so great. would there be a different, simple way to do his but have it look pretty good?
-
what should i use to update and upload the application? should i just have my winforms c# app update some file? what would i use to upload that file?
Update a database instead and then from the web page use an AJAX request to a backend script to pull updates from the database.
For example, your c# application stores the texts as records in a mysql database on your remote machine then the website contains some javascript which polls the server, eg start a timer with a callback to do an AJAX request back to the server to some script which responds with the last X records, or even a delta of the records since the last request, and update an area of the page with the information.
Note there is also Server Push, eg Comet where rather than constantly asking the server for changes from the client side as previously described you hold open a connection to the server from the users browser and push the changes to the browser whenever the server wants to.