Hello,
Read your description You need a php tcp loop which accepts data from an external program and display data in php it should also to the reverse thing
Lets have a quick chat to discuss this project. We have extensive experience in Designing Websites, Building Portals, Mobile Application Development, Developing Complex Web Applications in all major platforms. We have worked with several top companies and brands. If you want, I can share our portfolio with you as well.