How to properly execute C# file over local network?
<p>Overview</p>

<p>C# File - Users PC<br/>
PHP Server - Hosts Webpages for application</p>

<p>Server and Users PC on local network</p>

<p>I have a c# file that reads weight from a USB scale.  How would I trigger this file to run so it feeds into my program.  The problem is I am using PHP to host our webpage/application so its not running client side and the scale is not hooked up to the server but to the clients PC.  </p>

<p>The C# script would have to be on the clients in order to read the scale so how would I trigger this to happen?</p>

<p>Is this even possible and if not what would be a better way?</p>

<p><br/><b><strong>Important Edit</strong></b><br/>
I was able to run the Scale Script (C#) when I wanted by having PHP and C# use TCP sockets.</p>

<p>The C# would listen for PHP to send something and when it did it would read the scale and send this information back to PHP becuase PHP was listening for a response.  Mixed in with a little Ajax and it updates in the web browser. </p>

<p>Gave Chris Credit because he was the most helpful with answering my questions</p>
