I have a PHP web project which need to connect to a C application. Now
we save commands in a file and an interface of that C application will
read commands from the file and write results to another. Anyway it is
too slow, especially for a heavy one. (read and write to file) I assume
it is better to use socket, but not sure whether it is going to be
better. Somebody have used socket with the certain situation? How about
it?