I'm using a local server on my laptop to control a C# program via PHP. Basically I'm taking a POST passed to my web server, and using it as the parameters for a command line program. My code is essentially this:
$parameters = $_POST['parameters'];
system('C://THEFILEPATH/myprogram.exe ' . $parameters);
The problem is that this causes myprogram.exe to stop and start every time I want to pass something to it. Since a good portion of my program is initialization, it causes a bit of unnecessary lag. Is there a way to run myprogram.exe via PHP, and pass it variables as it continues to run instead of starting it anew each time?
Thanks!